cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
New Member

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
Highlighted
Helper I
Helper I

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
Highlighted
Helper I
Helper I

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
New Member

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
Frequent Visitor

Re: Post Team Message then Reply Message

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

Helpful resources

Announcements
firstImage

Now Live: Power Virtual Agents Community!

We are excited to announce the launch of Power Virtual Agents Community. Check it out now!

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!

Top Solution Authors
Top Kudoed Authors
Users online (6,271)