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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Unanswered

Issue with Lookup @odata.bind When Creating Records via Dataverse Web API

(2) ShareShare
ReportReport
Posted on by 84

Hi everyone,

I’m working on a customization where I copy a record (using JavaScript + Dataverse Web API) and create a new one with the same data. This includes several lookup fields.

The problem I’m facing

When I retrieve a record using the Web API with annotations, lookup values come back in this format"

"_samplelookupfield_value": "GUID",
"_samplelookupfield_value@Microsoft.Dynamics.CRM.lookuplogicalname": "systemuser"

 

So the first problem is, I am not getting the Field@Microsoft.Dynamics.CRM.associatednavigationproperty in the response.

So naturally, I tried creating the new record using:

"samplelookupfield@odata.bind": "/systemusers(GUID)"

But this fails with an OData error saying the property is undeclared.

However, when I use checked in the background the field logical/schema name is and it works perfectly.

"SampleLookupField@odata.bind": "/systemusers(GUID)"

 

What I’m trying to solve

I want to avoid hardcoding navigation property names because:

  • This solution is generic and should work across entities.
  • Lookup schema names differ from logical names.
Thanks,
Dinesh
I have the same question (0)
  • JB-07011018-0 Profile Picture
    2 on at
    Hi Dinesh
     
    Yes the Dataverse SDK for Python seems to make the dictionary keys lowercase which breaks the @odata.bind 
     
    I don't know how to fix it really. Might just have to not use the lib.
     
    Regards,
    Joshua

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 Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
11manish Profile Picture

11manish 166

#2
ManoVerse Profile Picture

ManoVerse 54 Super User 2026 Season 1

#3
Niki Patel Profile Picture

Niki Patel 40

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans