cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Super User
Super User

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
Super User
Super User

Re: email body formatting

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

Re: email body formatting

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
Super User
Super User

Re: email body formatting

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

Re: email body formatting

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

keith701a
Level: Power Up

Re: email body formatting

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?

Super User
Super User

Re: email body formatting

@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
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

Top Kudoed Authors
Users Online
Currently online: 328 members 5,659 guests
Please welcome our newest community members: