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

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Power Apps June 2021

June Power Apps Community Call

Did you miss the call? Check out the recording here!

Top Solution Authors
Top Kudoed Authors
Users online (17,696)