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 / Not able to patch the ...
Power Apps
Unanswered

Not able to patch the lookup column into Database

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I have used Combo Box ,That is the lookup field .

RajSaha__0-1643955021423.png

On the on change I have I'm collecting all the records into the collection 

I want patch the lookup value into Sharepoint 

RajSaha__1-1643955202491.png

Patch(TopFindings,
Defaults(TopFindings),
{Title:"",
'Finding Test':testCol})

 

Categories:
I have the same question (0)
  • WarrenBelz Profile Picture
    155,940 Most Valuable Professional on at

    Hi @Anonymous ,

    That is because Lookup columns (not the best idea to use with Power Apps unless you really need them to interact directly with SharePoint) are a complex field type containing the ID of the item being looked up in the other list. You also seem to be trying to Patch a collection into the field. What is testCol?

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    test Col is the collection 
    On the on change function I'm saving the data into the collection  

  • PowerRanger Profile Picture
    3,458 Super User 2024 Season 1 on at

    @Anonymous In Sharepoint what type has the field "Findling Test" ? Is this a Text field or a lookup column? 

  • PowerRanger Profile Picture
    3,458 Super User 2024 Season 1 on at

    @Anonymous just recognized that it must be a lookup. In order to Patch a lookup column you must pass a record in this format

     

    {

    Id:1,

    Value: ""

    }

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

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

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 296 Most Valuable Professional

#2
11manish Profile Picture

11manish 224

#3
Valantis Profile Picture

Valantis 181

Last 30 days Overall leaderboard