cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Hazem-Hassan
Regular Visitor

Leave Request Template: Change Approver from Outlook search to DropDown

Hello,

 

I am trying to change the approver in the leave request template to be a list to choose from instead of the outlook directory search. 

 

what I actually did is deleting the search part and adding the dropdown but it seems there is some logic that needs changing. Please see my change:

 

Hazem-Hassan_3-1619424841364.png

 

 

What else should be changed? 

 

Thank you 🙂 

1 ACCEPTED SOLUTION

Accepted Solutions
v-jefferni
Community Support
Community Support

Hi @Hazem-Hassan ,

 

Is O365 not available for your App, so you have to change the Approved selections to a custom list?

 

If so, then sending emails to selected approver would not be functioning in your App.

 

Anyway, after the modification in the template, you will need to edit some codes:

10.png

11.png

So OnVisible of the Confirmation Screen, you will need to change all "_selectedApprover.UserPrincipalName" to ApproverComboBox.Selected.Email( assuming the email column name in the list is Email, ApproverComboBox is the name of the Control).

 

Hope this helps.

 

Best regards,

Community Support Team _ Jeffer Ni
If this post helps, then please consider Accept it as the solution to help the other members find it.

View solution in original post

1 REPLY 1
v-jefferni
Community Support
Community Support

Hi @Hazem-Hassan ,

 

Is O365 not available for your App, so you have to change the Approved selections to a custom list?

 

If so, then sending emails to selected approver would not be functioning in your App.

 

Anyway, after the modification in the template, you will need to edit some codes:

10.png

11.png

So OnVisible of the Confirmation Screen, you will need to change all "_selectedApprover.UserPrincipalName" to ApproverComboBox.Selected.Email( assuming the email column name in the list is Email, ApproverComboBox is the name of the Control).

 

Hope this helps.

 

Best regards,

Community Support Team _ Jeffer Ni
If this post helps, then please consider Accept it as the solution to help the other members find it.

View solution in original post

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Power Apps June 2021

June Power Apps Community Call

Did you miss the call? Check out the recording here!

Top Solution Authors
Top Kudoed Authors
Users online (63,186)