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 :
Business Central forum

Unclear Endpoints and Resource URIs

(0) ShareShare
ReportReport
Posted on by 10

As per the API Documentation of Microsoft Dynamics Nav Business Central, only the companies and subscriptions resource have URIs like endpoints/entity but for the rest of the resources like Employees, Accounts, Items, etc., operations are performed on a particular company and the URIs are like endpoints/companies({id})/entity. How can we determine that from metadata, which property defines that?

Categories:
I have the same question (0)
  • Suggested answer
    Peter Zentner Profile Picture
    390 on at

    You won't be able to know this by just looking at the metadata for the API, the metadata just lists the different entities available, it seems. "companies" looks the same as "customers", for instance, but one is in not the context of the company and the other one is.

    One of the reasons, I believe, is that you can define a default company (not in SaaS, but onprem) and then the endpoints can be the same, because the "customers" endpoint will use the default company to provide you with the data. 

    The best way of "knowing", I think is to assume that all endpoints are in the "companies" context, except for a few system endpoints, such as "companies".

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard > Business Central

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans