So currently I'm working on task, that will return all groups that user triggering the flow is member of.
I stuck on this:
My teammate gave me a hint, that this way is proper, but I need something more from inputs.
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It only takes a minute to sign up.
Sign up to join this communityCreate a power automate flow like this:
Uri used in HTTP request action is:
_api/web/siteusers/getbyemail(<userEmail>)/groups
Replace <userEmail>
with dynamic content from PowerApps (V2) trigger.
From Power apps, while running this flow, use formula like:
FlowName.Run(User().Email)
Replace FlowName
with name of your flow.
User()
function in power apps. In my answer, we are passing currently logged in user's email (User().Email
) to the flow when user runs the flow. You just need to add the formula (FlowName.Run(User().Email)
) on OnSelect
property of button. Replace FlowName
with name of your flow.
Jul 22, 2022 at 13:53
userId
in case you use this URI: _api/web/siteusers/getbyemail(<userEmail>)/groups
. You only need the email address of user running the flow (which you are getting from Power apps).
Jul 26, 2022 at 8:07