
Announcements
Hello, I am new to PowerApps and I can't seem to find a way to customize views based on one's department or role within a SharePoint group. I tried using this line of code in the App StartScreen, but the membership ID I grabbed from the URL is not working:
ClearCollect(colGroups,Office365Groups.ListOwnedGroupsV3().value);Clear(colGroupUsers);ForAll(colGroups,Collect(colGroupUsers,Office365Groups.ListGroupMembers(id).value)); Navigate(BrowseScreen, ScreenTransition.None)
Basically I want the manager to be able to view all users' form submissions in the app, and users can only view their own submissions via this code that does work in the App StartScreen:
Can someone please suggest a way I can create different views based on user department/role or user email from SharePoint? Thanks!
You might get better responses to question on the "Build Power Apps section" (link below) than in the admin and governance section.
https://powerusers.microsoft.com/t5/Building-Power-Apps/bd-p/PowerAppsForum1
====================================================
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.
https://www.linkedin.com/in/devendravelegandla/