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 : V2aIukzpoYNYx86L1qtaBD
Power Apps - Power Apps Pro Dev & ISV
Answered

Problem with custom Ploymorpic Field an WebAPI update

Like (0) ShareShare
ReportReport
Posted on 14 Jun 2024 10:43:29 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 14 Jun 2024 at 12:13:21
    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 our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 791 Most Valuable Professional

#2
MS.Ragavendar Profile Picture

MS.Ragavendar 410 Super User 2025 Season 2

#3
mmbr1606 Profile Picture

mmbr1606 275 Super User 2025 Season 2

Loading complete