cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Nitram
Frequent Visitor

Issue when Posting a Message in MS Team using Flow.

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

2 ACCEPTED SOLUTIONS

Accepted Solutions

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.

View solution in original post

Nitram
Frequent Visitor

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.

View solution in original post

7 REPLIES 7
v-yamao-msft
Community Support
Community Support

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

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

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.

Nitram
Frequent Visitor

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.
Anonymous
Not applicable

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.

Anonymous
Not applicable

This helped me. Thank you.

Anonymous
Not applicable

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

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

Helpful resources

Announcements
Power Automate News & Announcements

Power Automate News & Announcements

Keep up to date with current events and community announcements in the Power Automate community.

Community Calls Conversations

Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Automate Community Blog

Power Automate Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Users online (2,382)