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

Community site session details

Session Id :
Power Automate - Building Flows
Unanswered

Sharepoint text from a file - send email stripping formatting?

(0) ShareShare
ReportReport
Posted on by 251

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



 

I have the same question (0)

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 788 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 452 Moderator

#3
developerAJ Profile Picture

developerAJ 302

Last 30 days Overall leaderboard