web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / 'Post adaptive card an...
Power Automate
Unanswered

'Post adaptive card and wait for a response' timeout & conditional

(0) ShareShare
ReportReport
Posted on by 29

I have a flow with the action 'post adaptive card and wait for a response'. The adaptive card has 2 buttons. Following this action, I have a parse JSON action to parse the user's response, and then a switch which has different actions depending on which button the user pressed.

 

However, I want to build out a third set of actions which will trigger if the user doesn't respond / interact at all with the card. In the adaptive card action settings, I've set the timeout to PT1H. However, how can I edit my switch and/or logic in general so that if the user presses button A, actions A will occur, if they press button B, actions B will occur, but if they don't respond after 1 hour, actions C will occur? Can this be done with a 'do until' loop? If so, how?

Categories:
I have the same question (0)
  • Verified answer
    Ed Gonzales Profile Picture
    4,531 Most Valuable Professional on at
    Re: 'Post adaptive card and wait for a response' timeout & conditional

    @eprevost 

    Hey there.  So, this is theory, but should work, ya?  I imagine there's some kind of update happening in Actions A or B, right?

    Add a parallel branch to your flow at the same level as your "send adaptive card" step.  Have a delay, and then something to check for the update that happens in A or B.  If neither of those have happened, then Action C:

     

    edgonzales_0-1653081124195.png

    Something like that.

     

    Keep us posted.

    -Ed

     

    If you liked this reply, please give it a thumbs up! If this reply has answered your question or resolved your challenge, please consider marking it as a Solution. This helps other users find it more easily via search.

  • Verified answer
    eprevost Profile Picture
    29 on at
    Re: 'Post adaptive card and wait for a response' timeout & conditional

    Hi there. This solution is interesting. I think that the delay and conditional in the parallel branch may not be necessary. I found this writeup which details error handling in Power Automate using the 'configure run after' setting. I think that if I were to put actions C as a parallel branch to the 'parse JSON' action and then set it to run only after the 'send adaptive card' either fails or times out, this would give me the intended results. 

     

    However, in the end I went with a slightly different solution. I put the teams card and the switch within a 'do until' loop that will loop until a previously-created variable is equal to true. In the switch, after both actions A and actions B, I set the variable to true. If neither case A nor case B in the switch evaluates to true, the flow will skip to a final  conditional with evaluates whether the variable is equal to false, and if so, it performs actions C. I then set my actions to run even if the previous action failed, timed out, etc. See screenshots below. 

    FlowFix1.PNG

     

     

    FlowFix2.PNG

     

    FlowFix4.PNG

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 462 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 456 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard