Hello everyone
I am developping a canvas app to be able to show and edit a subgrid of records. For this I am developping a pcf using some datasets as input as I was not satisfied with the editable grid.
I am then trying to update the record whenever a cell value changes in my subgrid and this works fine for every record type except for lookup values.I always get the following error:
"Network error when using Patch function: Value must be a data entity record".
I have tried making a hardcoded lookup object myself, I have tried passing a data record directly, I have tried using record.getNamedReference() and passing that along, all without succes.
Below some examples of code I have tried: