web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Current User (Who trig...
Power Apps
Answered

Current User (Who triggered Flow)

(0) ShareShare
ReportReport
Posted on by 80

HI, 

I have requirement to add current user in SharePoint group when user is cliked on button. 

I tried the follwoing artilce to add the user in SharePoint Group. 

https://www.c-sharpcorner.com/article/add-the-users-to-the-sharepoint-groups-using-microsoft-flow/

 

I need to pass the Group Name and Current logged user email to MS flow. But I dont know how to get the current user email id inside the MS Flow. 

I'm using PowerApp Button to trgger the Flow from PowerApps screen. I'm able to get the current user logon id inside the powerapps. So, I will send the GroupName;loginID to the powerApps when user click the button. 

But How do I spilt the AskinPowerApps value ?

 

Any string manipulation availabel like Split(AskInPowerAppsValue, ";")[0]? 

Categories:
I have the same question (0)
  • Verified answer
    yashag2255 Profile Picture
    24,769 Super User 2024 Season 1 on at

    Hi @azeesdinu 

     

    You can get the current user email address in PowerApps using User().Email
     
    Now for the flow configurations, you can define two actions (both Initialize Variable), one to store Group Name and other to store the Email Address. This can be done by selecting "Ask in PowerApps" from the dynamic content in your flow. For first variable this "Ask in PowerApps" occurs automatically but if a variable already exists, then you may need to create another variable, by selecting "see more" on the right menu of PowerApps dynamic content. This way two different names variables are created.
     
    Now remove the flow from the button in the PowerApps and re-register it.
    Pass the two variables as 'PowerAPps Button'.Run(GroupName, User().Email)
     
    Assuming first variable is for the Group Name and second is for email as per the flow configuration.
     
    If you still want to pass this as single variable, you can trugger the flow as:
    'PowerAPps Button'.Run("GroupName;"&User().Email)
     
    and while retrieving in the flow, you can use split to get the values.
     
    split(VariablecreatedforFlow,';')[0] -> GroupName 
    split(VariablecreatedforFlow,';')[1] -> Current User Email
     
    Hope this Helps!
     
    If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 339 Most Valuable Professional

#2
11manish Profile Picture

11manish 180

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 88 Super User 2026 Season 1

Last 30 days Overall leaderboard