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.

View solution in original post

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_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Users online (1,714)