cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
David_Nguyen
Microsoft
Microsoft

Send email in Leave Request from PowerApps template to manager

The reason why the email is not sent to the default code set the email to the requester so that, in testing, there will not be spamming to your manager.

 

You can change it from the ConfirmationScreen.onVisible

 

image.png

 

Change it with the following code:

 

 //send email with email template

    Office365.SendEmail(_selectedApprover.UserPrincipalName, "New Leave Request", First(EmailTemplate).Value, {Importance: "Normal", IsHtml: true});

 

However, it is not suggested to change the send email template while the app is still in testing process.

0 REPLIES 0

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Power Platform Call June 2022 768x460.png

Power Platform Community Call

Join us for the next call on June 15, 2022 at 8am PDT.

PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

PA.JPG

New Release Planning Portal (Preview)

Check out our new release planning portal, an interactive way to plan and prepare for upcoming features in Power Platform.

Users online (3,654)