cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
pmulhol64
New Member

Posting multiple Teams message from portions of an email - Formatting issue

Hello,

 

I'm using the flow and code below to post sections of a weekly email to multiple Teams messages in a channel. For example, 'Executive Summary' section of the email posts to one Teams message, 'Technical Issues' section posts to another Teams message. 

 

My issue is that when I try to post the section of the email to a Teams message, the text formatting is lost, leaving one continuous string of text. For example, the 'Executive Summary' section has the email formatting as shown below, but the Teams message shows:  "Executive Summary: O REVENUE * Aaa * Bbb * ccc"

 
Is there a way to send the parsed email text, with the original formatting, as a Teams message?

 

What original email formatting looks like:

Executive Summary:

o   Revenue

    • Aaa
    • Bbb
    • ccc

 

Flow

pmulhol64_0-1632317420151.png

 

Code:

Find Exec Summary:

indexOf(outputs('Html_to_text')?['body'], 'Executive Summary:')
 
Get Exec Summary Len:
sub(indexOf(outputs('Html_to_text')?['body'], 'Technical Issues:'), outputs('Find_Exec_Summary'))
 
ExecSummaryString:
substring(outputs('Html_to_text')?['body'],outputs('Find_Exec_Summary'),outputs('Get_Exec_Sum_Len'))
 
Find Tech Issues:
indexOf(outputs('Html_to_text')?['body'],'Technical Issues:')
 
GetTechIssues:
sub(indexOf(outputs('Html_to_text')?['body'], 'Revenue:'), outputs('FindTechIssues'))
 
Post Exec Summary
pmulhol64_4-1632319074405.png

outputs('ExecSummaryString')


 

 
 

 

0 REPLIES 0

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Power Automate Designer Feedback_carousel.jpg

Help make Flow Design easier

Are you new to designing flows? What is your biggest struggle with Power Automate Designer? Help us make it more user friendly!

Top Solution Authors
Users online (2,783)