cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Nitram
Level: Powered On

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
Nitram
Level: Powered On

Re: Issue when Posting a Message in MS Team using Flow.

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
Level: Powered On

Re: Issue when Posting a Message in MS Team using Flow.

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

5 REPLIES 5
Highlighted
Community Support Team
Community Support Team

Re: Issue when Posting a Message in MS Team using Flow.

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.
Nitram
Level: Powered On

Re: Issue when Posting a Message in MS Team using Flow.

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
Level: Powered On

Re: Issue when Posting a Message in MS Team using Flow.

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

SPDevelKMT
Level: Powered On

Re: Issue when Posting a Message in MS Team using Flow.

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.

Learningis4ever
Level: Power Up

Re: Issue when Posting a Message in MS Team using Flow.

This helped me. Thank you.

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

firstImage

Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Kudoed Authors (Last 30 Days)
Users online (4,839)