web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Email Template Using L...
Power Apps
Unanswered

Email Template Using Launch

(0) ShareShare
ReportReport
Posted on by 3

Below is an example of an email template I am trying to create on a button's on select within a canvas app. It seems that at a certain length of the string, the launch breaks and won't open the email. I have deduced this pretty easily because some of the needed templates work without issue when there isn't as much text in the email body. Is there a way to mitigate this issue using launch? Or rather is there a different method aside from launch that I could use to open an outlook email template like I have attempted to as seen below?

 

Thanks

Launch(
"mailto:" & varcurrentrecord.'Reporter Name' & "<" & DataCardValue28.Text & ">" &
"?cc=" &
"&bcc=" &
"&subject=Hand Washing" &
"&body=The Food Safety Department is here to help you and your team provide safe food to Casey’s guests and our communities every day and, as such, the Department will be addressing food safety, or potential food safety, incidents. [As mentioned during [our/my] telephone conversation [with { }, your { } this [morning/afternoon], [a/A] Casey’s guest submitted the following report regarding a recent [purchase from] [visit to] your store [on { }]:%0D%0A%0D%0A

^(from SalesForce) Highlight portion of report relating to food safety:

%0D%0A%0D%0ABelow is the purchase information:

%0D%0A%0D%0A^(from SalesForce)%0D%0A%0D%0A

To continue to promote food safety to Casey’s guests, I am attaching Casey’s policy regarding personal hygiene. In addition, below are notes from the Certified Food Protection Manager course relating to hand washing requirements:%0D%0A%0D%0A
1. Before preparing food or working with clean equipment and utensils.%0D%0A%0D%0A
2. After using the restroom.%0D%0A%0D%0A
3. After handling soiled items and before touching clean items.%0D%0A%0D%0A
4. After touching body or clothing.%0D%0A%0D%0A
5. After taking out garbage, sneezing, coughing, blowing nose or using a handkerchief or tissue.%0D%0A%0D%0A
6. After eating, drinking, smoking, chewing gum or tobacco.%0D%0A%0D%0A
7. After handling money, chemicals, touching service animals or any other type of animal.%0D%0A%0D%0A
8. After leaving the kitchen or prep area and returning to it, when changing tasks.%0D%0A%0D%0A
Please share the attached policy and the above information with your Team Members.%0D%0A%0D%0A
If you have any questions, please feel free to contact the Food Safety Team.

"
)

Categories:
I have the same question (0)
  • timl Profile Picture
    36,383 Super User 2025 Season 2 on at

    Hi @kyleweiher 

    There is a limit to the length of data that you can pass through a URL. This varies by browser by ideally, it shouldn't be more than about 2000 characters. Exceeding this length will result in the behaviour that you're seeing. There isn't any way to mitigate this when calling launch.

    An altnernative is not to use Launch but to populate an HTML input control with your email body text. The user can then edit the text from within your Power App, and you can then send your message by calling the Office365Outlook connector.

     

  • kyleweiher Profile Picture
    3 on at

    Thank you. This helped me and I was able to get this functionality working. However, I am using html to match the template (with highlights on certain text, bold text and tables) I can't seem to get a different highlight color aside from yellow. I also can get borders/tables around portions of text. Is this a limitation in powerapps?

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 796 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard