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


Power Apps Super User Class of 2020

Check it out!


Power Apps Community User Group Member Badge

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


Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020


Difinity Conference

The largest Power BI, Power Platform, and Data conference in New Zealand

Top Solution Authors
Top Kudoed Authors (Last 30 Days)
Users online (5,886)