December 2019
Beginner to intermediate
770 pages
16h 14m
English
As we discussed in the Comparing OData and APIs in Dynamics 365 Business Central section, you cannot extend an existing standard Dynamics 365 Business Central API page. If you need to retrieve new fields for a standard Dynamics 365 Business Central entity, you need to create a new API page in your namespace.
For example, here, I am creating a simple new API that retrieves a customer's details, which are not natively exposed in the standard Customer API. The API page is defined as follows:
page 50115 MyCustomerAPI{ PageType = API; Caption = 'customer'; APIPublisher = 'SD'; APIVersion = 'v1.0'; APIGroup = 'customapi'; EntityName = 'customer'; EntitySetName = 'customers'; SourceTable = Customer; ...Read now
Unlock full access