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 Apps / Updating a look up fie...
Power Apps
Unanswered

Updating a look up field in Sharepoint

(0) ShareShare
ReportReport
Posted on by 162

I see the standard Datacardvalue60. Selected does not work.

 

How do i get the look up field in SP to update?  

 

maries1986_0-1631575095490.png

 

Categories:
  • Digital Profile Picture
    1,207 on at

     

    You could try patching the lookup column instead? 

     

    Patch(
     'YourSPL',
     LookUp('YourSPL', ID=1),
     {
     YourLookUpColumn: {
     Id: 2,
     Value: "The Value"
     }
     }
    )

     

  • v-qiaqi@microsoft.com Profile Picture
    Microsoft Employee on at

    Hi @maries1986,

    Have you solved your problem?

    Do you want to update the LookUp field in your SP list?

    Could you please tell me that if this LookUp field allows multi select or not?

    If it a standard single select LookUp field, please set the Update property of the data card as below:

    {
     Id: LookUp(
     lookupAB,
     AColumn = DataCardValue60.Selected.Value
     ).ID,
     Value: DataCardValue60.Selected.Value
    } // lookupAB is the original list where the LookUp field retrieves value from
  • maries1986 Profile Picture
    162 on at

    @v-qiaqi-msft 

     

    {
    Id: LookUp(
    'Customer Asset Database',
    'Parent Host' = DataCardValue60.Selected.Value
    ).ID,
    Value: DataCardValue60.Selected.Value
    }

     

    I got red until = and Value 

  • maries1986 Profile Picture
    162 on at

    @Digital 

     

    maries1986_0-1632145715228.png

     

  • maries1986 Profile Picture
    162 on at

    Seems to be a fairly difficult thing to do to just get the datacardvalue into a lookup field on SP

  • maries1986 Profile Picture
    162 on at

    @v-qiaqi-msft 

     

    I changed it to SelectedItems.....seems to like that but still getting an error on =

     

    It says they cant compare the 2....table/Record?

     

    maries1986_1-1632146131841.png

     

  • v-qiaqi@microsoft.com Profile Picture
    Microsoft Employee on at

    Hi @maries1986,

    Sorry for the late reply.

    I have asked you that if this LookUp field allows multi select or not, if it does, you should use the SelectedItems. 

    However, you should provide more details about your LookUp field if it allows only single select.

  • SqtaMorda Profile Picture
    138 on at

    It should be 'Parent Host': { ... ,you missed ":"

  • maries1986 Profile Picture
    162 on at

    Thanks everyone.  figured it out.  works with the following:-

    {'@odata.type':"#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference",
    Id:DataCardValue60.Selected.ID,
    Value:DataCardValue60.Selected.Parent_x0020_Host}

     

    Now i just need it to allow a blank value!

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 248 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 192 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 135

Last 30 days Overall leaderboard