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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Store PrincipalID in a...
Power Automate
Answered

Store PrincipalID in a variable

(1) ShareShare
ReportReport
Posted on by 272

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

Categories:
I have the same question (0)
  • Verified answer
    abm abm Profile Picture
    32,865 Most Valuable Professional on at

    Hi @theisogunro ,

     

    Please see my post

     

    https://powerusers.microsoft.com/t5/Building-Flows/How-do-I-add-permissions-to-folder-after-it-is-created-with-flow/m-p/301773#M31954

     

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

     

    Thanks

  • Verified answer
    v-bacao-msft Profile Picture
    on at

    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,

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 501 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 323 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard