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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Issue when Posting a M...
Power Automate
Answered

Issue when Posting a Message in MS Team using Flow.

(1) ShareShare
ReportReport
Posted on by 33

Is there a way I can force Rich format to be kept so on MS Team when posting I get the carriage returns? Or Even to convert it HTML?

 

This workflow is pretty staight forward, When an email arrive... Post a Message in MS TEAM using the 'BODY'..

 

Note: I've tryed using HTML to TEXT but the output remain 'plain text'.

 

Thank you,

 

21.jpg22.jpg

Categories:
I have the same question (0)
  • v-yamao-msft Profile Picture
    on at

    Hi @Nitram,

     

    I would suggest remove the action Html to text which will change the email body to plain text.

    From your description, it seems that you want to post email body into Microsoft Teams. Please just use the trigger When a new email arrives and the action Post message.

    I have made the following test. The message posted in teams has the same format with the email body.

    1.PNG2.PNG

     

    Best regards,

    Mabel

  • Verified answer
    Nitram Profile Picture
    33 on at

    Nevermind, The EMAIL input received is PLAIN TEXT, therefore Flow does it correctly and post it as PLAIN TEXT... 

     

    I'll see if parsing is possible... I've been looking at PARSERR but I'm affraid of 3rd party tool that got to read my Business EMAIL.. 

     

    Thanks anyway, we can close this post.

  • Verified answer
    Nitram Profile Picture
    33 on at

    FINALLY - Manual Parsing FTW!!!

     

    I was able to get a PLAIN Text email posted in MS TEAM in HTML format with a MANUAL parsing!

    Look at this:

     

    1.jpg

    OUTPUT1: last(split(first(split(triggerBody()?['Body'],'Risk Level: ')),'Summary: '))

    ***This mean that the Output VAR is AFTER: 'Summary' and BEFORE 'Risk Level'***

     

    OUTPUT2: last(split(first(split(triggerBody()?['Body'],'Change Timing: ')),'Risk Level: '))
    OUTPUT3: last(split(first(split(triggerBody()?['Body'],'Timing Reason: ')),'Change Timing: '))
    etc... until all 9 variables are filled up!
     
    Then, you need to do a little of HTML (Or use a Converter online) and insert the OUTPUT(S) in your MS TEAM message you want to post. Like This:
    2.jpg
     
    RESULT:
    3.jpg
    Voilà!
    Hope that this will help all the folks online that want to do Email Parsing or Scraping !
     
    Merry X-Mas & Happy New Year !
    Nitram.
  • Community Power Platform Member Profile Picture
    on at

    l am also experiencing a similar issue.  I am using the SharePoint list in the Teams backed to collect data then posting a message to the Teams Channel so users can collaborate on the item that was posted in the list.  When the message is posted in the Teams channel, it is not a Hyperlink, it is displayed as plain text.  I am using the "link to item" property in Flow to add the link to the item in the post.  I have aslo tried using HTML to create the link to the SharePoint item and nothing works.  I currently have a ticket open with MS Premium support and it has been escalated to Program Group.  I will post the results as soon as I get them.  They have reproduced the issue, waiting to get a work around.

  • Community Power Platform Member Profile Picture
    on at

    This helped me. Thank you.

  • Community Power Platform Member Profile Picture
    on at

    This helps me proxy email notifications from 3rd party software through Microsoft Teams private messages. 

  • Nitram Profile Picture
    33 on at

    Nah, I wanted to PARSE my email first, not just dump my email body in MS TEAM.

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 525 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 324 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard