Showing results for 
Search instead for 
Did you mean: 
Level: Powered On

Patch function to a CDS Lookup using the CDS connector



Does anybody know the properties for setting a Lookup field in CDS using the Patch function? I have the records GUID (which is obviously type GUID), however the Lookup field expects a type 'Record'. I am trying to set an OpportunityID lookup and I need to know the properties expected for a record i.e. ID, Value etc etc). I cannot use a the Lookup function as I hit the delegation limit. Thanks in advance.

Community Support Team
Community Support Team

Re: Patch function to a CDS Lookup using the CDS connector

Hi @Jhetheringt92 ,


You are correct about the part that lookup column need to provide the actualy record. Please try to store the whole record in a variable, for example, call it V1, then patch like this:


You could also see if below threads could help:




Community Support Team _ Mona Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Level: Powered On

Re: Patch function to a CDS Lookup using the CDS connector

Hi @v-monli-msft, thank you for the response. Unfortunately these examples won't work for me as I only know the ID of the record. I will not be able to do a lookup to the record as I will receive a delegation error as there are thousands of records against that entity.


The Patch function should accept just the ID, as it isn't realistic that you have the whole record. For now I have had to use Microsoft Flow as this allows me to create a record and set the value using only the ID, however I think this should be considered for a future release.

Helpful resources

Better Together’ Contest Finalists Announced!

'Better Together’ Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.


Power Apps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!


Join THE global Microsoft Power Platform event series

Attend for two days of expert-led learning and innovation on topics like AI and Analytics, powered by Dynamic Communities

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020


Microsoft Business Applications Virtual Launch

Join us for the Microsoft Business Applications Virtual Launch Event on Thursday, April 2, 2020, at 8:00 AM PST.


Community Summit North America

Innovate, Collaborate, Grow - The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors
Users online (8,267)