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 / "When a channel messag...
Power Automate
Answered

"When a channel message is added" Trigger attachment structure

(0) ShareShare
ReportReport
Posted on by 22

So i have this flow which is triggered when a new teams message is added to a channel.

I take the "body content" outputs('When_a_new_channel_message_is_added')?['body/body/content'] to move on in my flow. Recently i only got errors and couldn't figure out why, until i compared the runs which failed with the last one which was successful. Then I saw that all the outputs of the following actions are empty, as the message content is no longer stored in "body content". Apparently it is now stored in attachments.

 

I cannot pull the message content with outputs ('When_a_new_chat_message_is_added')?['body/attachments/content'] either. I would appreciate it, if anyone has an advice.

trigger output of latest run (unsuccessful)trigger output of latest run (unsuccessful)trigger output of previous run (successful)trigger output of previous run (successful)

Categories:
  • Verified answer
    v-yueyun-msft Profile Picture
    Microsoft Employee on at

    Hi, @NotFlowing 

    According to your screenshot , your attachments seems is an array , you may need to use this code to extract the content:
    outputs ('When_a_new_chat_message_is_added')?['body/attachments']?[0]?['content']

     

    Best Regards,

    Yueyun Zhang

  • NotFlowing Profile Picture
    22 on at

    Thank you! This did the trick

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 430

#2
11manish Profile Picture

11manish 341 Super User 2026 Season 2

#3
M Bilal Khan Profile Picture

M Bilal Khan 282

Last 30 days Overall leaderboard