cancel
Showing results for 
Search instead for 
Did you mean: 
Reply

email body formatting

Hi 

 

I am trying to e-mail the location latitude and longitude when a screen becomes visible. I added the below code for the OnVisible value

 

Office365.SendEmail(<<my e-mail id>>,"Test location",Location.Latitude+Location.Longitude)

 

This sends me only the latitude. I know I am doing something wrong over there but am not sure what operator to use to include both the values.


Vivek Bavishi aka That API Guy
PowerApps and Flow MVP
Blog | Twitter | YouTube | Community Profile | GitHub



If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

2 ACCEPTED SOLUTIONS

Accepted Solutions

figured it out from some other topic by using the "&" operator!

 

 


Vivek Bavishi aka That API Guy
PowerApps and Flow MVP
Blog | Twitter | YouTube | Community Profile | GitHub



If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Anonymous
Not applicable

Hi @ThatAPIGuy

 

To create a string from several variables use & instead of +

 

So it would be something like this:

Office365.SendEmail(<<my e-mail id>>,"Test location",Location.Latitude&Location.Longitude)

However this would leave no space between Latitude and Longitude so you could ahve something like this to make it easier to read in an email:

 

Office365.SendEmail(<<my e-mail id>>,"Test location","Latitude: "&Location.Latitude&". Longitude: "&Location.Longitude)

View solution in original post

4 REPLIES 4

figured it out from some other topic by using the "&" operator!

 

 


Vivek Bavishi aka That API Guy
PowerApps and Flow MVP
Blog | Twitter | YouTube | Community Profile | GitHub



If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Anonymous
Not applicable

Hi @ThatAPIGuy

 

To create a string from several variables use & instead of +

 

So it would be something like this:

Office365.SendEmail(<<my e-mail id>>,"Test location",Location.Latitude&Location.Longitude)

However this would leave no space between Latitude and Longitude so you could ahve something like this to make it easier to read in an email:

 

Office365.SendEmail(<<my e-mail id>>,"Test location","Latitude: "&Location.Latitude&". Longitude: "&Location.Longitude)

View solution in original post

I realize this post is old, but you just headed a huge headache for me.

Is there a way to insert line breaks between fields in the body section?

@keith701a

 

Yes, you will have to set the IsHTML to true using this -

 

Office365.SendEmail(<<my e-mail id>>,"Subject","Body line 1 <br> body line 2<br>",{IsHtml:true})

And then basicall you can format the body as html text.

 

Hope this helps 


Vivek Bavishi aka That API Guy
PowerApps and Flow MVP
Blog | Twitter | YouTube | Community Profile | GitHub



If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Users online (1,668)