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
Highlighted
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

Highlighted
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
Highlighted
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

Highlighted
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

Highlighted
New Member

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?

Highlighted
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
secondImage

New Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

Experience what’s next for Power Apps

Join us for an in-depth look at the new Power Apps features and capabilities at the free Microsoft Business Applications Launch Event.

Check this Out

Helpful information

Featuring samples like Return to the Workplace and Emergency Response Applications

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (6,206)