Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
Aaron_M
Regular Visitor

Email that is generated from a Mailto link isn't reading line feeds in the generated email.

I've created a link in a visual that will generate an email.

All works perfectly other than line breaks in the body. It doesn't matter if I use #(cr) or #(lf), inside of "text" or outside of it.

When the email generates, the body displays as Body content line 1Body content line 2[cell data from Field 3]Body content line 3

 

I've tried variants of the simplified coding below. I just added the different varients of "#(lf)" "#(cr)" in the example below, but I have tried them in many different variants

 

"mailto:" & "[Field 1]" & "?subject="& "SUBJECT EXAMPLE "& "[Field 2]" & "&body="&

"Body content line 1"

&"#(lf)"& "#(cr)" &

"Body Content line 2 "

&"#(lf)"& 

[Field 3] &

"Body Content line 3"

 

Weird thing is the display of the cell shows the effect in Power Query editor, it's just when the email generates.

 

Has anyone gotten this to work correctly, I assume i am missing something really simple, but Google didn't find me what i wanted easily.

1 ACCEPTED SOLUTION
Aaron_M
Regular Visitor

Ended up being really simple "%0D%0A"

I thought i had tried it and was unsuccessful. It seemed like it was getting impacted by where i entered the previous text string and the following text string. But this worked.....

"Body content line 1"

& "%0D%0A" &

"Body content line 2"

View solution in original post

2 REPLIES 2
Aaron_M
Regular Visitor

Ended up being really simple "%0D%0A"

I thought i had tried it and was unsuccessful. It seemed like it was getting impacted by where i entered the previous text string and the following text string. But this worked.....

"Body content line 1"

& "%0D%0A" &

"Body content line 2"

foodd
Super User
Super User

Please provide your work-in-progress Power BI Desktop file (with sensitive information removed) that covers your issue or question completely in a usable format (not as a screenshot).

https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-...

Please show the expected outcome based on the sample data you provided.

https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447...

This allows members of the Forum to assess the state of the model, report layer, relationships, and any DAX applied.

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

Check out the June 2024 Power BI update to learn about new features.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.