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

Notifications

Announcements

No record found.

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

(0) ShareShare
ReportReport
Posted on by 78

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)

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
iampranjal Profile Picture

iampranjal 47

#2
Martin Dráb Profile Picture

Martin Dráb 41 Most Valuable Professional

#3
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 32 Super User 2025 Season 2

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans