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
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Solution Authors
Top Kudoed Authors
Users online (1,306)