cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Frequent Visitor

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
Highlighted
Super User III
Super User III

Re: Store PrincipalID in a variable

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

View solution in original post

Highlighted
Community Support
Community Support

Re: Store PrincipalID in a variable

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
Highlighted
Super User III
Super User III

Re: Store PrincipalID in a variable

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

View solution in original post

Highlighted
Community Support
Community Support

Re: Store PrincipalID in a variable

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

Helpful resources

Announcements
firstImage

Super User Program Update

Three Super User rank tiers have been launched!

firstImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

firstImage

Join the new Power Virtual Agents Community!

We are excited to announce the launch of Power Virtual Agents Community. Check it out now!

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

Top Solution Authors
Users online (7,897)