Hello,
I have an approval status Choice field and I would like to Hide one of the options in the dropdown if the logged in user is not the manager of the person who created the item.
Is this possible in power apps?
please advise,
Solved! Go to Solution.
Hi...If you are using PowerApps to submit the items, I would include the manager of the person submitting the items with the Office 365 formulas to save it in a column. Let's say you call that column "Manager".
Then you can use something like the follwing to collect the manager's name:
Office365Users.Manager(Office365Users.MyProfile().UserPrincipalName).DisplayName
You can hide the card and add that formula on the default property so your user experience doesn't change
So then, on your other app, compare the name on the "Manager" column with the current user's name to decide if the dropdown is visible or not. For example, if you are using a gallery you can use:
Dropdown.Visible=If(ThisItem.Manager= Office365Users.MyProfile().DisplayName, true, false)
hope that helps
Hi...If you are using PowerApps to submit the items, I would include the manager of the person submitting the items with the Office 365 formulas to save it in a column. Let's say you call that column "Manager".
Then you can use something like the follwing to collect the manager's name:
Office365Users.Manager(Office365Users.MyProfile().UserPrincipalName).DisplayName
You can hide the card and add that formula on the default property so your user experience doesn't change
So then, on your other app, compare the name on the "Manager" column with the current user's name to decide if the dropdown is visible or not. For example, if you are using a gallery you can use:
Dropdown.Visible=If(ThisItem.Manager= Office365Users.MyProfile().DisplayName, true, false)
hope that helps
The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.
This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.
User | Count |
---|---|
183 | |
46 | |
46 | |
34 | |
33 |
User | Count |
---|---|
260 | |
87 | |
79 | |
68 | |
67 |