cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Dane_
Level: Power Up

Post Team Message then Reply Message

Hi,

 

I've used a basic template where a SharePoint file is added to a folder, it adds a message to Teams, requests Approval, then posts a message back to the Team.

 

I've tried changing the Flow to post a reply to the original Team message but I'm unsure how to get the Message ID to pass to the Reply. The only dynamic content that is available is the Team Body?

 

Can I do what I'm wanting to do and if so, please could someone point me in teh right direction.

Appreciate any help.

 

MSFlow_Teams.PNG

1 ACCEPTED SOLUTION

Accepted Solutions
rogrimbe
Level: Powered On

Re: Post Team Message then Reply Message

Hi Dane, 

there is no way to getthe message Id in a nice way from the post message return data.

 

you can do something a bit ugly and use the get messages action and go over the messages with a condition to find the one you need which you post before and extract the id 

View solution in original post

3 REPLIES 3
rogrimbe
Level: Powered On

Re: Post Team Message then Reply Message

Hi Dane, 

there is no way to getthe message Id in a nice way from the post message return data.

 

you can do something a bit ugly and use the get messages action and go over the messages with a condition to find the one you need which you post before and extract the id 

View solution in original post

Highlighted
Dane_
Level: Power Up

Re: Post Team Message then Reply Message

Thanks for the feedback, I'm currently looking at this putting something together.

 

It's not the cleanest, as you say, but I think i can get the job done.

Brian-Cape
Level: Powered On

Re: Post Team Message then Reply Message

Instead of using Dynamic Content, use Expression using this: body('Post_message')?['id']

Helpful resources

Announcements
firstImage

Better Together Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

firstImage

Incoming: New and improved badges!

Look out for new contribution recognition badges coming SOON!

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Community Summit North America

The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors
Users online (4,263)