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
Super User 2 - 2022 Congratulations 768x460.png

Welcome Super Users

The Super User program for 2022 - Season 2 has kicked off!

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.

<
Users online (3,953)