web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Power Apps - Power Apps Experimental Features
Unanswered

Trying to update a lookup value through a canvas app using pcf

(4) ShareShare
ReportReport
Posted on by 9
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: 

 
 
 
I know this is an experimental feature but there is documentation for it so I was hoping to get it working but to no avail.
https://learn.microsoft.com/en-us/power-apps/developer/component-framework/reference/entityrecord/setvalue
https://learn.microsoft.com/en-us/power-apps/developer/component-framework/reference/entityrecord/save.

Has anyone run into this problem before and get it working?

Kind regards
A Power apps developer
 
I have the same question (0)

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

Coming soon: forum hierarchy changes

In our never-ending quest to improve we are simplifying the forum hierarchy…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 724 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 319 Super User 2025 Season 2

#3
SebS Profile Picture

SebS 239 Moderator

Last 30 days Overall leaderboard

Featured topics