Skip to content
DataMiner DoJo

More results...

Generic selectors
Exact matches only
Search in title
Search in content
Post Type Selectors
Search in posts
Search in pages
Search in posts
Search in pages
Log in
Menu
  • Updates & Insights
  • Questions
  • Learning
    • E-learning Courses
    • Empower Replay: Limited Edition
    • Tutorials
    • Open Classroom Training
    • Certification
      • DataMiner Fundamentals
      • DataMiner Configurator
      • DataMiner Automation
      • Scripts & Connectors Developer: HTTP Basics
      • Scripts & Connectors Developer: SNMP Basics
      • Visual Overview – Level 1
      • Verify a certificate
    • Video Library
    • Books We Like
    • >> Go to DataMiner Docs
  • Expert Center
    • Solutions & Use Cases
      • Solutions
      • Use Case Library
    • Markets & Industries
      • Media production
      • Government & defense
      • Content distribution
      • Service providers
      • Partners
      • OSS/BSS
    • Agile
      • Agile Webspace
      • Everything Agile
        • The Agile Manifesto
        • Best Practices
        • Retro Recipes
      • Methodologies
        • The Scrum Framework
        • Kanban
        • Extreme Programming
      • Roles
        • The Product Owner
        • The Agile Coach
        • The Quality & UX Coach (QX)
    • DataMiner DevOps Professional Program
      • About the DevOps Program
      • DataMiner DevOps Support
  • Downloads
  • More
    • DataMiner Releases & Updates
    • Feature Suggestions
    • Climb the leaderboard!
    • Swag Shop
    • Contact
    • Global Feedback Survey
  • PARTNERS
    • All Partners
    • Technology Partners
    • Strategic Partner Program
    • Deal Registration
  • >> Go to dataminer.services

ChatOps – Responding to a Teams notification / use additional parameters for custom command

Solved1.29K views7th February 2024Automation script chatbot ChatOps Teams teams bot
4
Felix Wesemeier [DevOps Catalyst]1.84K 23rd January 2024 1 Comment

Hi Community,

I want to respond to a notification send by DataMiner to Teams to take the ownership of an alarm.

Open some varius link from a button works fine, but using a button with a submit action ends up in a "Sorry, I did not understand that. You can type help to see all my available commands." response of the chatbot, no matter what command I use (here: Show DMS).

Questions:

  • Is there any way to run a command directly from a notification via submit action or other ways to achieve it?
  • Is it possible to add additional parameters (e.g. alarm id) as a response to the notification or when running a custom command (e.g.: "run command Take Ownership alarmId:12345,agentId:1")?

Notification:

Action Code Part:

Felix Wesemeier [DevOps Catalyst] Selected answer as best 7th February 2024
Jordy Ampe [SLC] [DevOps Enabler] commented 23rd January 2024

Hi, I’ll have a look and come back to you shortly.

3 Answers

  • Active
  • Voted
  • Newest
  • Oldest
2
Felix Wesemeier [DevOps Catalyst]1.84K Posted 2nd February 2024 2 Comments

It looks like it is possible when I define the following in the DataJson part of the AdaptiveSubmitAction:

// bot command (you can also use the predefined like "GetElementById"):

{ "CustomActionId", "ExecuteAutomationScriptId" },

// name of the command you want to run
{ "AutomationScriptName", "Take Ownership" },

{ "InputMetaData", metaData },

// for each parameter you need (ID, value), ID must match the ones in InputMetaData:

{ "11", chatId },

{ "22", alarmId },

{ "33", dmaId }

And for the metaData List, 3 dictionaries containing the following (for each parameter you need):

1:

{ "ID", "11" } ,
{ "Name", "Chat ID" },
{ "Command", "PARAMETER:1" }

2:

{ "ID", "22" },
{ "Name", "Alarm ID" },
{ "Command", "PARAMETER:2" }

3:{ "ID", "33" },
{ "Name", "Agent ID" },
{ "Command", "PARAMETER:3" }

Felix Wesemeier [DevOps Catalyst] Edited answer 2nd February 2024
Jordy Ampe [SLC] [DevOps Enabler] commented 2nd February 2024

Correct, I’m working on documenting this and validating the support (if it’s working as well in group chats/channels etc or not). You can also use Adaptive Inputs to let a user fill in/select the inputs that you defined for the automation script/custom command, those will be added to the data object by Teams.

Felix Wesemeier [DevOps Catalyst] commented 2nd February 2024

Great, I look forward to reading the documentation when the time comes.

You are viewing 1 out of 3 answers, click here to view all answers.
Please login to be able to comment or post an answer.

My DevOps rank

DevOps Members get more insights on their profile page.

My user earnings

0 Dojo credits

Spend your credits in our swag shop.

0 Reputation points

Boost your reputation, climb the leaderboard.

Promo banner DataMiner DevOps Professiona Program
DataMiner Integration Studio (DIS)
Empower Katas
Privacy Policy • Terms & Conditions • Contact

© 2025 Skyline Communications. All rights reserved.

DOJO Q&A widget

Can't find what you need?

? Explore the Q&A DataMiner Docs

[ Placeholder content for popup link ] WordPress Download Manager - Best Download Management Plugin