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!


Report
All responses (
Answers (