kiranpradeep
kiranpradeep

Reputation: 11221

MS Teams: Invoking outgoing webhook from AdaptiveCard Actions

In Teams, I have setup outgoing webhooks to process messages with mentions to outgoing webhooks name.

Currently user is having to manually type in the mention to outgoing webhook (named OutgoingHookName) to post messages to it. I like to create an adapative card action in such a way that the outgoing webhook will be triggered when user performs the card action. I tried JSON as below, but the obviously incorrect/incomplete mention (<at>OutgoingHookName</at>) did not help.

Is it possible to trigger an outgoing webhook from with an adapative card action? If not, is there an alternative other than creating a full fledged messaging bot?

{
  "type": "AdaptiveCard",
  "version": "1.2",
  "actions": [
    {
      "type": "Action.Submit",
      "data": {
        "msteams": {
          "type": "imBack",
          "value": "<at>OutgoingHookName</at> ID:1234"
        }
      },
      "title": "Invoke Webhook"
    }
  ]
}

Upvotes: 0

Views: 513

Answers (1)

Mamatha-MSFT
Mamatha-MSFT

Reputation: 577

Currently It's not possible to invoke an outgoing webhook from AdaptiveCard Actions and currently there is no work around for this. You must use @mention in compose message area for the webhook to receive message.

Microsoft will always focus on customer’s feedback and experience, some new features would be added to the services based on customers' feedback in the future, we also recommend you give your new idea in Teams UserVoice here if this needs to be consider as a future request.

Upvotes: 1

Related Questions