Menu

Microsoft Teams Adaptive Cards: Is there any way to trigger a backend API on button click without a bot?

#azure#redditazure#teams#card#adaptive
Reading 0:00
15s threshold

Hi everyone,

I'm working on a notification system that sends interactive Adaptive Cards to Microsoft Teams 1:1 chats using the Microsoft Graph API. I've got the authentication and message delivery working, but I'm stuck on handling button clicks.

What I have working

- I'm authenticating using username/password credentials and obtaining a delegated Microsoft Graph access token.

- Using that token, I'm able to create a 1:1 Teams chat and send an Adaptive Card to it.

- The card renders correctly in Teams.

- The message is sent through Microsoft Graph using a normal user account, not a Teams bot.

What I want to achieve

My Adaptive Card contains actions such as:

- Approve

- Reject

- Trigger an external API

When a user clicks one of these buttons, I want to make a POST request to my backend API immediately, ideally in the background, without opening a browser, webview, or another page.

What I've discovered so far

- "Action.OpenUrl" works, but it opens a URL.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.