cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
MrNigel
Advocate V
Advocate V

Initiating Flow from Adaptive Card button

The use case is this:

 

  1. Adaptive card created externally - not via Flow
  2. Adaptive card posted to Teams user - user must confirm they have read the card by pressing 'Confirm' button
  3. This triggers a Flow that writes UPN, timestamp, etc to SPO list

The Adaptive Card has a button that asks the user to confirm they have read the text on the card, we are using a flow to store UPN, timestamp, TeamName and EventDetails into a SPO list.  We want to use a webhook to trigger the flow in item 3, but you are limited what you can do with Adaptive Card buttons.  We cannot get the Adaptive Card Action.Submit button to trigger the flow (I cannot use Action.OpenURL as we do not want a browser session).  It may well be this is not possible?  It must be to do with the way the Action.Submit is processed because the webhook URL works perfectly when executed from Postman.

 

I cannot find any reference to someone using a button to invoke a webhook, does that mean this cannot be done?

 
 
 
 
 
 
5 REPLIES 5
DamoBird365
Microsoft
Microsoft

Hi @MrNigel 

 

Could you not just use post an adaptive card and wait for a response.  When the reponse is received write the timestamp etc.  It's all part of the original flow then?

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Cheers,
Damien


P.S. take a look at my new blog here

We started off by using the "Post an Adaptive Card to a Teams user and wait for a response" action, but we need to store a specific set of info for audit purposes.  It must be a simple button press so the user has positively confirmed they understand the text on the card.

DamoBird365
Microsoft
Microsoft

@MrNigel worth a look at Tomasz's site.  He does a lot with Adaptive cards and you might be able to find what you are looking for here.

 

https://poszytek.eu/en/microsoft-en/office-365-en/powerautomate-en/register-response-from-custom-ada...

 

Damien

...been there and done that as well!  The challenge is that the adaptive card is not generated by a flow, it is from an external app raising an alert via a SQL trigger.  We have 300,000+ users who get these alerts so do NOT want to use a flow for anything other than registering the button press.

JGT
Frequent Visitor

disregard still looking 😞

Helpful resources

Announcements
Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Difinity Conference 2022

Difinity Conference 2022

Register today for two amazing days of learning, featuring intensive learning sessions across multiple tracks, led by engaging and dynamic experts.

European SharePoint Conference

European SharePoint Conference

The European SharePoint Conference returns live and in-person November 28-December 1 with 4 Microsoft Keynotes, 9 Tutorials, and 120 Sessions.

Users online (1,895)