web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Teams: Post a reply to...
Power Automate
Answered

Teams: Post a reply to a message (V2)

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

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

Categories:
I have the same question (0)
  • Verified answer
    RezaDorrani Profile Picture
    12,145 on at

    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 Profile Picture
    Microsoft Employee on at

     

    Hi @Anonymous ,

     

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

     

    Best Regards,

  • Hyperion Profile Picture
    28 on at

    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'.

  • ketaki_27 Profile Picture
    Microsoft Employee on at

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

  • Mahesh_yv Profile Picture
    Microsoft Employee on at

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

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at
    Also getting the same issue.....
  • KevinKeo Profile Picture
    2 on at

    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

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 594

#2
Valantis Profile Picture

Valantis 328

#3
David_MA Profile Picture

David_MA 281 Super User 2026 Season 1

Last 30 days Overall leaderboard