Summary

Completed

In this module, you learned about a new way of communicating with Business Central. You can use the API, which allows you to create separate objects that can't be used within the application by users. The API also supports the system of versioning, which is useful if you want to release a new version but still want to support the legacy API.

The API is built with OData, so all OData filter options are available within the API. Microsoft provides the SystemId field in every table, which is used to uniquely identify a record. Use this SystemId field as the ODataKeyFields property to retrieve a single record.

Limitations occur on the OData and API performance when you create custom applications on top of the Business Central API.

Finally, you learned that you can run custom procedures within an API page. These procedures are called bound actions. To create a bound action, put a ServiceEnabled attribute above the procedure, and then work with the WebServiceActionContext and WebServiceActionResultCode data types.