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?

 
 
 
 
 
 
4 REPLIES 4
DamoBird365
Super User
Super User

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
Super User
Super User

@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.

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Solution Authors
Users online (3,125)