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 teams keyword is ...
Power Automate
Answered

When teams keyword is used in chat, automate flow should copy message, date and user to excel. Text formatting issue.

(0) ShareShare
ReportReport
Posted on by 11

I am very new to Power Automate and I created a flow to copy teams messages based on keyword trigger to Excel sheet. I want to record the message itself, the date and the user to the Excel sheet.
The flow itself works however the data in excel sheet look like json format and not the human readable text yet. How Do I format the text properly?
image.pngimage.png

Excel output shown

image.png

Categories:
  • Verified answer
    Michael E. Gernaey Profile Picture
    53,975 Super User 2026 Season 2 on at

    Hello,

     

    I noticed that you are calling Get Message Details. However, when you call Add a Row I see it useMessage Id, versus the dynamic properties of Get message details. (sorry, I cannot tell exactly what you are passing in).

     

    However, if you look at the Dynamic properties of Get Message Details, there are 4 different Body/body dynamic properties. Im guessin the plain text is what you want.

    FLMike_0-1695430828655.png

    and

    FLMike_1-1695430867036.png


    Cheers
    If you like my answer, please Mark it as Resolved, and give it a thumbs up, so it can help others
    Thank You
    Michael Gernaey MCT | MCSE | MCP | Self-Contractor| Ex-Microsoft
    https://gernaeysoftware.com
    LinkedIn: https://www.linkedin.com/in/michaelgernaey

     

  • Verified answer
    Manish Solanki Profile Picture
    15,169 Moderator on at

    Hi @StevenE 

     

    To get the name of the user, pls select "From User Display Name" property from the output of "Get Message details" action in dynamic content as shown below:

    ManishSolanki_0-1695441366066.png

     

    If this helps & solves your problem, please remember to give a 👍 and accept my solution as it will help others in the future.

     

    Thanks

  • StevenE Profile Picture
    11 on at

    Thank you @FLMike and @ManishSolanki I eventually figured it out as well that I was using the wrong properties.
    Both of your suggestions are a solution to different parts of my problem. I used Body PlainTextContent for the message and Outputs (where the keyword is stripped out). I used From User Display Name for the user's name. I ultimately came up with this flow.

    StevenE_0-1695675065224.png

    StevenE_1-1695675457017.png

     

     

  • Michael E. Gernaey Profile Picture
    53,975 Super User 2026 Season 2 on at

    So glad you got it

     

    Its so easy to make tiny mistakes that dont stand out.

     

    Hay and Needle lol

     

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
11manish Profile Picture

11manish 307 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 289

#3
Henil Profile Picture

Henil 127

Last 30 days Overall leaderboard