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 / Problem with custom Pl...
Power Apps
Answered

Problem with custom Ploymorpic Field an WebAPI update

(0) ShareShare
ReportReport
Posted on by 36

Hello everyone,

 

I am currently programming a field PCF for an entity that contains a custom polymorp look up. Among other things, this can have a systemuser as value. I have to update the polymorpic column asynchronously. Unfortunately I have encountered a problem. The logical name of my column is "lehfsma_locationid". If I now try to change the field via webAPI.updateRecord with the following data value:

 

"lehfsma_locationid@odata.bind": "/systemusers(9BE2A0B8-BE1F-EF11-840B-0022489CF1FD)"

 

I get an error:

Error identified in Payload provided by the user for Entity :'', For more information on this error please follow this help link https://go.microsoft.com/fwlink/?linkid=2195293 ----> InnerException : Microsoft.OData.ODataException: An undeclared property 'lehfsma_locationid' which only has property annotations in the payload but no property value was found in the payload. In OData, only declared navigation properties and declared named streams can be represented as properties without values.

 

However, if I change the owner instead of my field with :

 

"ownerid@odata.bind": "/systemusers(9BE2A0B8-BE1F-EF11-840B-0022489CF1FD)"

 

it works. Where is my error or is the WebAPI not yet able to update custom polymorphic columns?

 

Greetings Flo

I have the same question (0)
  • Verified answer
    RMSRothmayer Profile Picture
    36 on at

    I solved it myself.

    With custom polymorphic fields you have to specify the type.

    "lehfsma_LocationId_systemuser@odata.bind": "/systemusers(9BE2A0B8-BE1F-EF11-840B-0022489CF1FD)"

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 476

#2
WarrenBelz Profile Picture

WarrenBelz 365 Most Valuable Professional

#3
Vish WR Profile Picture

Vish WR 339

Last 30 days Overall leaderboard