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

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.

Highlighted
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

Incoming: New and improved badges!

Look out for new contribution recognition badges coming SOON!

firstImage

Power Platform Online Conference

Join us for the first ever Power Platform Online Conference!

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!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Users online (6,185)