cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
stavi82
Frequent Visitor

Possible to get adaptive card message ID before response?

In my example, I have adaptive cards that often repeat themselves based on the user response. If one such scenario, a user sends a clarification request from the adaptive card. When the clarification response is made, the card returns to the original user for further disposition.

 

Now, since some of these clarifications can be very wordy, I know it will hit the character limit for the adaptive card. My idea is to post the adaptive card, then post a reply to that card with the clarification response to save space in the card.

 

Is it possible to get the messageId of an adaptive card that is waiting for a response before the response is recorded?

1 ACCEPTED SOLUTION

Accepted Solutions

@stavi82 understood, yes you will have to wait till response has been made. In this case your flow will also go in wait mode, so flow wont go ahead, until you have parallel branch. You can use get messages to search for the message in teams.

Regards,
Anna Jhaveri

If I have answered your question, please mark the post as Solved to help other users to identify the correct answer
If you like my response, please give it a Thumbs Up.

View solution in original post

3 REPLIES 3
annajhaveri
Super User
Super User

@stavi82  you will get message id as output from the "Post adaptive card and wait for a response" action

 

annajhaveri_0-1631007875879.png

 

you can use below expression to get the message id

outputs('Post_adaptive_card_and_wait_for_a_response')?['body/data/messageId']
Regards,
Anna Jhaveri

If I have answered your question, please mark the post as Solved to help other users to identify the correct answer
If you like my response, please give it a Thumbs Up.

I've tried that, but it won't return the messageId until the response has been made. I'm looking to post a reply to the message while the adaptive card is waiting for a response.

@stavi82 understood, yes you will have to wait till response has been made. In this case your flow will also go in wait mode, so flow wont go ahead, until you have parallel branch. You can use get messages to search for the message in teams.

Regards,
Anna Jhaveri

If I have answered your question, please mark the post as Solved to help other users to identify the correct answer
If you like my response, please give it a Thumbs Up.

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

May UG Leader Call Carousel 768x460.png

June User Group Leader Call

Join us on June 28 for our monthly User Group leader call!

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Power Automate Designer Feedback_carousel.jpg

Help make Flow Design easier

Are you new to designing flows? What is your biggest struggle with Power Automate Designer? Help us make it more user friendly!

Users online (4,536)