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 Automate / Get SharePoint List Lo...
Power Automate
Answered

Get SharePoint List Lookup Column Id

(0) ShareShare
ReportReport
Posted on by 278

I have created a SharePoint List with a Lookup Column.  I want to be able to pull the Lookup Columns ID.  How can this be done? 

Would it look something like this:

items('apply_to_each')?['Lookup_Value']?['Id']
Categories:
I have the same question (0)
  • Verified answer
    Mister_Shaik Profile Picture
    1,008 on at

    Hi @duncant ,

     

    Assuming that the lookup column name is "Lookup" and you're trying to read the lookup column value in a apply to each loop, here's how the expression would look,

    items('Apply_to_each')?['Lookup/Id']

     

    You can get the Lookup value or Id from the get items as well (in case you are getting items from a SharePoint list using the "Get Items" action), using the dynamic content popup,

    1. get id.PNG

     

    Hope this helps 🙂

     

    Kind Regards,

    Shaik Sha
    ________________________________________________________________________

    If I have answered your question, please mark the post as Solved.
    If you like my response, please give it a Thumbs Up.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi @Mister_Shaik ,

     

    I followed your solution but my flow looks different. Whenever I select the Lookup column Id (named "Group" in my case), the "Current item" in an 'Apply to each' is automatically created, and when I run the flow I get the below error. I have the Compose in an Apply to each for "Get items" of a SharePoint list.

     

    Any help would be greatly appreciated.

     

    Thanks 

     

    mccardj_0-1648984299845.png

    mccardj_1-1648984456656.png

     

  • Mister_Shaik Profile Picture
    1,008 on at

    Hi @Anonymous ,

     

    That's a valid error message as the second "Apply to each" loop you're using is taking the output object of first loop - which would not work as loops expect their inputs to be an array.

     

    In your case, you can click and drag the Compose action outside of "Apply to each 8" loop and delete the "Apply to each 8" loop, as you won't need it.

     

    Let me know if it works!

     

    Kind Regards,

    Shaik Sha
    ________________________________________________________________________
    If I have answered your question, please mark the post as Solved.
    If you like my response, please give it a Thumbs Up.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi @Mister_Shaik ,

     

    I can't believe I never thought of that! Ok so it semi-worked. I was able to run the flow successfully using Group Id below (1st screenshot), however, I was getting the ID of the item rather than the ID of the LookUp column ('Group'). When I refreshed the page, the Group Id had automatically changed to Id (2nd screenshot).

     

    Is this a bit strange to you?

     

    The 3rd screenshot are the details of the LookUp column if that helps 🙂

     

    mccardj_0-1649022723103.png

     

    mccardj_0-1649023791440.png

     

    mccardj_1-1649023877194.png

     

     

     

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 816

#2
Valantis Profile Picture

Valantis 603

#3
Haque Profile Picture

Haque 566

Last 30 days Overall leaderboard