Am customizing SharePoint list form, and I have 4 forms in it . one is new ,second is view , third is edit request , and fourth is Approve form.
My scenario is when my manager open is edit mode . then only open approve form. Rest anyone click on edit , then edit request form need to open .
Please help me
@Yoursnani User().Email will give the email of the currently logged in user. But you will need to compare this with the email of the user to see if they are a Manager or a Normal user. Where do you have this information stored?
Please try the following,
Switch(User().Email, "firstname.lastname@example.org", Navigate(ApprovalScreen), "email@example.com", Navigate(ApprovalScreen), Navigate(EditScreen) )
its worked well but . can we do same with group ?, if i have one SharePoint Group and i want that people only can load approvalScreen, Rest are should open Edit Screen ,
if Yes . please give me codes how to do with Groups
You can load your sharepoint group records to a collection in your powerapps.
ClearCollect(sharepointGroups, 'Group name');
Once you have the data loaded in your collection you can easily do lookup/filter on collection to see if logged in user is present in group. based on the result you can navigate user to respective screen.
Please mark my answer verified if this is helpful!
Follow my Blog: https://xrmdynamicscrm.wordpress.com/
Your chance to join an engaging competition of Power Platform enthusiasts.
The Super User program for 2022 - Season 2 has kicked off!
Attend in person or online, there are incredible conferences and events happening all throughout the month of September.
In response to the unique and evolving requirements of the United States public sector, Microsoft has created Power Apps US Government.