cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper I
Helper I

How do I add my data to the body of the email

Hello, I'm looking to launch an email without sending it. that way I can add a pdf and send myself. It should include data from the app field (items). 

 

I found online code that works perfectly except that I cannot figure out how to insert my field name (items) into the body so that it will include it in the email.

 

I put an icon on my detailscreen with the below code.  Hoping someone can point me in the right direction so I can insert my "items" data into the body of the email.  

thanks 🙂

 

 

Launch(Concatenate("mailto:xxxxxxx@gmail.com?subject=Purchase Order","&cc=","xxxxxxxxx@gmail.com","&body=","this is my message", "%0A%0A"))

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Super User III
Super User III

Re: How do I add my data to the body of the email

Hi @dannyshane ,

I just did a test this end and the following works fine

Launch(
   "mailto:xxxxxxx@gmail.com?subject=Purchase Order&cc=" & 
   "xxxxxxxxx@gmail.com" &
   "&body=" & 
   "Your set message content " & char(10) &     //line break if required
   YourFieldDynamicReference &                // add your data fields in here
   "%0A%0A"
)

Happy to fine-tune further with your actual code if required.

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

View solution in original post

9 REPLIES 9
Highlighted
Solution Sage
Solution Sage

Re: How do I add my data to the body of the email

Try to use OutlookOffice365 connector, it is more intuitive that way.

 

 

Sending an email with attachments will be a lit bit challenging.

 

Hope it helps !

Highlighted
Helper I
Helper I

Re: How do I add my data to the body of the email

Thanks,

I've tried with that initially but there is no way to launch an email.   that method only sends the email. 

unless you know of a way using office365 connector to launch the email window dialog? 

 

because "launch" will open a new email message already populated, and then i can just do whataver (add attachment, etc) and press send 

 

 

 

Highlighted
Helper V
Helper V

Re: How do I add my data to the body of the email

Attach a file to a message On the File menu, click New, and then click Mail Message. On the Message tab, in the Include group, click Attach File. In the Insert File dialog box, browse to and choose the file that you want to attach, and then click Insert.

Highlighted
Super User III
Super User III

Re: How do I add my data to the body of the email

Hi @dannyshane ,

I just did a test this end and the following works fine

Launch(
   "mailto:xxxxxxx@gmail.com?subject=Purchase Order&cc=" & 
   "xxxxxxxxx@gmail.com" &
   "&body=" & 
   "Your set message content " & char(10) &     //line break if required
   YourFieldDynamicReference &                // add your data fields in here
   "%0A%0A"
)

Happy to fine-tune further with your actual code if required.

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

View solution in original post

Highlighted
Helper I
Helper I

Re: How do I add my data to the body of the email

Hi @WarrenBelz 

 

Thanks very much!  That did get my data into the message like I was looking to do.  I appreciate it. 

 

Just one more follow up question.  The line break "char(10)" won't work for me. 

 

I used: 

Launch(
   "mailto:xxxxxxxxx@gmail.com?subject=Purchase Order&cc=" & 
   "xxxxxxxxx@gmail.com" &
   "&body=" & 
   "My message content " & char(10) &     
   "testing line break and dynamic data..." & DataCardValueItems &                
   "%0A%0A"
)

 

My results are all on a single line: 

 

My message content testing line break and dynamic data...Test189NOC size 4X.Test188 size 2X.H502 size XL 

 

Thanks for your time

Highlighted
Super User III
Super User III

Re: How do I add my data to the body of the email

HI @dannyshane ,

My bad here should be as below

Launch(
   "mailto:xxxxxxxxx@gmail.com?subject=Purchase Order&cc=" & 
   "xxxxxxxxx@gmail.com" &
   "&body=" & 
   "My message content <br>" &     
   "testing line break and dynamic data..." & DataCardValueItems &                
   "%0A%0A"
)

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

Highlighted
Helper I
Helper I

Re: How do I add my data to the body of the email

Thanks for your reply. 

It didn't work for me.  

I tried using the break every which way even if it looked illogical. 

Do you think the "launch" function just doesn't allow it? 

 

Attempt (1) "My message content <br> & "testing line break"

It wouldn't launch. error stated: expected operator. We expect an operator like + and *

 

Attempt (2) "My message content <br>" & "testing line break"

didnt work. displayed the break in the email.

 

Attempt (3) "My message content" <br> & "testing line break"

error. invalid argument type. expecting a number.

 

Attempt (4) "My message content" & <br> & "testing line break"

wouldn't launch. error stated: expected operator. We expect an operator like + and *

 

 

Highlighted
Super User III
Super User III

Re: How do I add my data to the body of the email

Hi @dannyshane ,

Some testing shows what you have found - neither work. I did some searching and tried a few other things, but none worked.

It seems the Mailto: function simply fires over text to Outlook.

If I have answered your original post question, please Accept as Solution so others can find it more readily. It also closes the item.

 

Highlighted
Helper I
Helper I

Re: How do I add my data to the body of the email

Thanks and I appreciate your time and all of your help. 

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Watch Now

Experience what’s next for Power Apps

See the latest Power Apps innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published 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 (7,993)