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 / Displaying the Value o...
Power Automate
Suggested Answer

Displaying the Value of A Lookup in a SharePoint List

(0) ShareShare
ReportReport
Posted on by 1,362
Hello,

I have two lists.

List "A" is the parent list
List "B" is the child list
 
List "B" has the Lookup to Lisa "A"

the name of the lookup field in SharePoint is luCSARefNumb but in Power Automate it is "luCSARefNumb Id"c
 
List "B" is populated first via a Power App patch statement

Now, I already have a text field called CSFRefNumb, which has a string value, but I want the user to click on the lookup value in the child list and see the values that were entered in the parent list.

I can see the value in the Get Items action but when I use the field from the Dynamic Contents called "luCSARefNumb" Id / "luCSARefNumb#Id" it doesnt update the SharePoint list with the value.

Any ideas are appreciated.
 
Categories:
I have the same question (0)
  • Suggested answer
    Anchov Profile Picture
    1,986 on at

    For lookup fields in SharePoint, they are represented as a JSON object, which typically looks like this:
    "Columnname": {
        "@odata.type": "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference",
        "Id": 1,
        "Value": "Doggie"
    }
    To retrieve the value of the lookup field (e.g., in an Apply to each action after a Get Items action), you should use the following selector:
    items('Apply_to_each')?['ColumnName/Value']
    This ensures you access the Value property of the lookup field correctly.
     
    Example (lookup column name is "Look"):

  • golfnutt82 Profile Picture
    1,362 on at
    Thank you for your reply.

    When using your suggestion, I dont see this when I do a compose action and then enter the luCSARefNumb Value input that shows in my dynamic content.
  • golfnutt82 Profile Picture
    1,362 on at
    In my compose action I have the following which does extract the value.

    outputs('Get_Items')?['body']?['value'][0]?['luCSARefNumb']?['Id']

    However, when I use the Outputs in my Lookup field "luCSARefNumb Id" it doesnt populate it.
  • Anchov Profile Picture
    1,986 on at
    Sorry, trying to follow you, but if you are setting the output id as a variable defined as a string here:

    Then trying to use that value here:
    it will fail because it expect this to be an integer not a string.  Try changing you variable to be an integer.
     

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!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 589

#2
Valantis Profile Picture

Valantis 328

#3
David_MA Profile Picture

David_MA 284 Super User 2026 Season 1

Last 30 days Overall leaderboard