Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Power Apps Pro Dev & ISV
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

  • Verified answer
    RMSRothmayer Profile Picture
    36 on at
    Re: Problem with custom Ploymorpic Field an WebAPI update

    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

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Leaderboard > Power Apps - Power Apps Pro Dev & ISV

#1
WarrenBelz Profile Picture

WarrenBelz 109 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 82 Super User 2025 Season 1

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 72

Overall leaderboard