cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Seuadr
Helper IV
Helper IV

Sharepoint text from a file - send email stripping formatting?

Hi all,

 

I've got a flow set up that is looking up the contents of a text file, and then i'm taking that and composing an email with it using "Send an email(V2)"
the source files are formatted in unicode, and, while i found information on how to re-encode line breaks to HTML, i haven't found a way to preserve tabs.

An example of my text looks like:

 

"
CHILLED WATER PUMP AT AG HALL WILL NOT RUN!!
A. MON - FRI 5PM-MIDNIGHT OR SAT & SUN 8AM-MIDNIGHT, CONTACT THE
ELECTRICAL TROUBLE TRUCK OPERATOR.
B. ALL OTHER HOURS REFER TO THE AFTER HOURS CALL-IN LIST FOR CENTRAL CONTROL.
C. IF CENTRAL CONTROL CAN NOT BE REACHED CALL REFRIGERATION ON CALL PHONE
D. IF NONE OF THE ABOVE CAN BE REACHED CALL ONE OF THE FOLLOWING:
	1. BOB  	AT , OR
	2. STACY 	AT 
"

 

with the following formatting:

Seuadr_0-1645023441306.png

now, i found a number of articles covering line breaks, and i'm using an expression to deal with those:

 

uriComponenttostring(replace(uriComponent(outputs('Get_file_content_using_path')?['body']),'%0A','<br/>'))

 

But i'm not sure how to deal with the Tabs. i think the tab is %91 but i don't know the HTML equivalent? I think i could use something like:

 

uriComponenttostring(replace(uriComponent(outputs('Get_file_content_using_path')?['body']),'%0A','<br/>')replace(uriComponent(outputs('Get_file_content_using_path')?['body']),'%91',''))

 


thoughts?

 

Thanks,

 

Jared



 

0 REPLIES 0

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
Top Kudoed Authors
Users online (1,886)