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 / 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
    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
    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

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