How do i get a message/post ID from the team connection.
Screenshot 1: I create an adaptive card http://prntscr.com/t7d13o
I want flow to answer on this card
How to get the ID to the post that just posted?
Screenshot 2: http://prntscr.com/t7d18k
Solved! Go to Solution.
It won't be in dynamic content. You'll need to create an expression for it.
outputs('<Card_Name>')?['body/messageID']
1) A flow can not respond to an adaptive card.
2) You will have a parameter for message ID or in the Body in dynamics content if the above action of posting supports a reply from Flow
At this moment if you post a Adaptive Card as Bot you wont get the message id.
Please click Accept as Solution if it resolved your problem or give it a Thumbs Up if it helped you in anyway this will allow other people to search correct solutions effectively.
Thanks,
Rahber
Hey @Oskarkuus, this can be done, regardless if there's an action for it or not. Here's the simple way I figured out how to do this:
If you run the "Get messages" Teams action right after your Adaptive card, you can do a compose right after it to get the first message ID. Here's the function for "LatestMessageID".
outputs('Get_messages')?['body']?['value'][0]?['id']
This has helped me after I post an adaptive card to be able to utilize the "Post a reply" action after it.
Hope this helps!
It won't be in dynamic content. You'll need to create an expression for it.
outputs('<Card_Name>')?['body/messageID']
finally someone got an answer for this 🙂 it worked. Thank you
The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.
Announcing a new way to share your feedback with the Power Automate Team.
Learn to digitize and optimize business processes and connect all your applications to share data in real time.
User | Count |
---|---|
45 | |
16 | |
15 | |
14 | |
13 |
User | Count |
---|---|
78 | |
40 | |
28 | |
22 | |
19 |