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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Unanswered

Are OData navigation property names stable accross organizations?

(0) ShareShare
ReportReport
Posted on by 10
Hi,
 
Background:
we use OData for client side extensions within our managed solution.
 
For some OData requests navigation property names are required.
 
Example:
data/v8.0/pt_examples$expand=owninguser(...)
 
So what we did is to determine the needed navigation propery names at development time and hardcoded our OData requests.
 
After years one of our customers reported an error.
Turns out that some navigation property names in the customer's organization have changed after importing the last version of our managed solution.
 
In the customer's org the navigation property is named owninguser_system now, so the request should look like:
data/v8.0/pt_examples$expand=owninguser_systemuser(...)
 
In order to fix that, we would need to determine the navigation property names at runtime, e.g. with:
data/v8.0/EntityDefinitions(LogicalName='pt_example')/ManyToOneRelationships?$select=SchemaName,ReferencingEntityNavigationPropertyName,ReferencingAttribute
 
This works, but it considerably complicates the client side code and also has a hit on performance (even if we cache the metadata).
 
Questions:
  • Is this really the way to go? 
  • Are navigation property names really not stable accross organizations?
  • Or is there something special at our customer's organization?
  • How do you craft your OData requests with regard to navigation property names?
 
Additional information:
  • The custom entities in our managed solution cannot be customized. So there are no unknown, conflicting lookup fields, which could cause a naming clash.
  • Our customer migrated from on premise to online some years ago, and there was a another problem related to entity metadata, which was fixed by Microsoft support. Maybe it is a problem with the entity metadata in the customer's organization after all.
 
Thanks!
Johannes.
Categories:
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

News and Announcements

Season of Giving Solutions is Here!

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 > Customer experience | Sales, Customer Insights, CRM

#1
Pallavi Phade Profile Picture

Pallavi Phade 101

#2
Tom_Gioielli Profile Picture

Tom_Gioielli 79 Super User 2025 Season 2

#3
TAHER Mehdi Profile Picture

TAHER Mehdi 58

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans