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
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

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.

Users online (2,346)