cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

Teams: Post a reply to a message (V2)

I'm trying to build a flow where it will reply to a message that was posted to a channel in Teams earlier in the flow to confirm a second step but I cannot figure out how to get the message ID from the earlier message.  

 

Any help would be greatly appreciate.

 

Thanks!!

 

 

2019-08-15_11-00-53.png

1 ACCEPTED SOLUTION

Accepted Solutions
RezaDorrani
Dual Super User
Dual Super User

Hi @Anonymous 

 

When you pose the first message to the channel the message id should be available in dynmaic content but tsince this action is in preview it seems it is not showing anything except Body

 

However expressions to the rescue

Use expression

body('Post_a_message_(V3)')?['id'] to get message id 
where Post_a_message_(V3) is the name of the action of the first message posted in Flow
 
 
Note : No need to do get all messages
 

Regards,

Reza Dorrani

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

View solution in original post

7 REPLIES 7
RezaDorrani
Dual Super User
Dual Super User

Hi @Anonymous 

 

When you pose the first message to the channel the message id should be available in dynmaic content but tsince this action is in preview it seems it is not showing anything except Body

 

However expressions to the rescue

Use expression

body('Post_a_message_(V3)')?['id'] to get message id 
where Post_a_message_(V3) is the name of the action of the first message posted in Flow
 
 
Note : No need to do get all messages
 

Regards,

Reza Dorrani

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

v-bacao-msft
Community Support
Community Support

 

Hi @Anonymous ,

 

Have you had an opportunity to apply @RezaDorrani 's recommendations to adapt your Flow? Please take a try.

 

Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

I just tried using your solution but get the following error:

 

OpenApiOperationParameterTypeConversionFailed. The 'inputs.parameters' of workflow operation 'Post_a_reply_to_a_message_(V2)_2' of type 'OpenApiConnection' is not valid. Error details: Input parameter 'messageId' is required to be of type 'Integer/int32'. The runtime value '"1574381349127"' to be converted doesn't have the expected format 'Integer/int32'.

@Hyperion @Anonymous I am also getting the same issue. Did you find out any solution?

@Hyperion, @ketaki_27 
was any solution found out for this? Getting the same error

Anonymous
Not applicable

Also getting the same issue.....

So,

 

I have tried every avenue possible but every single time the test succeeds, it replies to every single message in the channel I have designated for the end user. So how do I change it to find a specific keyword in the body of the message and only reply to that single post that it needs to reply to.

 

Background Info: i am trying to create a helpdesk ticket system using Issue Tracking List. We are on Office365 so I am using modern sharepoint site and list.test_powerautomate.jpg

Helpful resources

Announcements
Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Users online (4,288)