cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
daroot
Resolver I
Resolver I

Leave Request App

Hi All, I am new with PowerApps. Play around with the Leave Request template.

What I am trying to do is, how to create the get 365 users same like the approver email. The situation is, one email for the approver (already there on template) and one more email for the Supervisor for example.

Thanks for any advice,
Z
1 ACCEPTED SOLUTION

Accepted Solutions
v-micsh-msft
Community Support
Community Support

Hi @daroot,

 

If here you are talking about the Creat New Request part, then within the OnSelect property of the Save button, the Email function is:

Office365.SendEmail(Office365Users.UserProfile(NewLeaveApproverID).Mail, "Leave Request Approval", emailHtml,{IsHtml:true, Importance:"normal"});

107.PNG

 

If additional Email need to be sent, then please consider add another line behind the formula above:

Office365.SendEmail(
Office365Users.UserProfile(NewLeaveApproverID).Mail, 
"Leave Request Approval",
 emailHtml,
{IsHtml:true, Importance:"normal"});
Office365.SendEmail(
SupervisorEmailAddress, 
"Leave Request Approval",
 emailHtml,
{IsHtml:true, Importance:"normal"});

 

Regards,

Michael

Community Support Team _ Michael Shao
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

6 REPLIES 6
Anwar
New Member

Hai Daroot

 

I am also looking for same solution, if you find any solution let me know

v-micsh-msft
Community Support
Community Support

Hi @daroot,

 

If here you are talking about the Creat New Request part, then within the OnSelect property of the Save button, the Email function is:

Office365.SendEmail(Office365Users.UserProfile(NewLeaveApproverID).Mail, "Leave Request Approval", emailHtml,{IsHtml:true, Importance:"normal"});

107.PNG

 

If additional Email need to be sent, then please consider add another line behind the formula above:

Office365.SendEmail(
Office365Users.UserProfile(NewLeaveApproverID).Mail, 
"Leave Request Approval",
 emailHtml,
{IsHtml:true, Importance:"normal"});
Office365.SendEmail(
SupervisorEmailAddress, 
"Leave Request Approval",
 emailHtml,
{IsHtml:true, Importance:"normal"});

 

Regards,

Michael

Community Support Team _ Michael Shao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Dear Michael

 

Appreciate your reply.

 

Where we will configure the supervisor email address, as the application will be for the whole company and the supervisor for each department will be different.

 

Anwar

daroot
Resolver I
Resolver I

Hi Michael, nice solution. And thanks for the explanation

Hi @v-micsh-msft,

 

On the Approver email address is it possible to used a button and parse the value as the selected value. So the users no need to pick the on popup page, since the only 5 managers on the system. If possible how to do it?

 

Thanks

Anonymous
Not applicable

Hi @v-micsh-msft ,

 

My leave request is sending email to me and not to my manager.

Help!!

Helpful resources

Announcements
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.

Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

Top Solution Authors
Top Kudoed Authors
Users online (3,161)