cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
theisogunro
Helper IV
Helper IV

Store PrincipalID in a variable

Hello All,

 

I am having the hardest time with something.  I'm about a month old in Flow so please have patience with me.

 

Below is what I have so far.  I just don't know what to do to get the value from the first action into the variable.  It's probably simple but I just can't figure it out.  I've seen blogs and I just don't get how.

principalID2.PNG

2 ACCEPTED SOLUTIONS

Accepted Solutions
abm
Super User
Super User

Hi @theisogunro ,

 

Please see my post

 

https://powerusers.microsoft.com/t5/Building-Flows/How-do-I-add-permissions-to-folder-after-it-is-cr...

 

If you may find it useful please accept this as solution.

 

Thanks



Did I answer your question? Mark my post as a solution!

If you liked my response, please consider giving it a thumbs up


Proud to be a Flownaut!

Learn more from my blog
Power Automate Video Tutorials

View solution in original post

v-bacao-msft
Community Support
Community Support

Hi @theisogunro ,

 

First of all, it may need to explain that Principal Id you need is property--id in the response of the first action, so you only need to get id value in the first action. .

 

If you follow configuration with image you provided, this value can be obtained through the Expression below.

 

You could configure the following Expression in Value:

body('Get_the_user_Principal_Id')['d']['id']

Image reference:

30.PNG

Hope it helps.

 

Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
abm
Super User
Super User

Hi @theisogunro ,

 

Please see my post

 

https://powerusers.microsoft.com/t5/Building-Flows/How-do-I-add-permissions-to-folder-after-it-is-cr...

 

If you may find it useful please accept this as solution.

 

Thanks



Did I answer your question? Mark my post as a solution!

If you liked my response, please consider giving it a thumbs up


Proud to be a Flownaut!

Learn more from my blog
Power Automate Video Tutorials
v-bacao-msft
Community Support
Community Support

Hi @theisogunro ,

 

First of all, it may need to explain that Principal Id you need is property--id in the response of the first action, so you only need to get id value in the first action. .

 

If you follow configuration with image you provided, this value can be obtained through the Expression below.

 

You could configure the following Expression in Value:

body('Get_the_user_Principal_Id')['d']['id']

Image reference:

30.PNG

Hope it helps.

 

Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Difinity Conference 2022

Difinity Conference 2022

Register today for two amazing days of learning, featuring intensive learning sessions across multiple tracks, led by engaging and dynamic experts.

European SharePoint Conference

European SharePoint Conference

The European SharePoint Conference returns live and in-person November 28-December 1 with 4 Microsoft Keynotes, 9 Tutorials, and 120 Sessions.

Users online (1,946)