Using bound actions

We can use bound actions to use RESTful APIs not only to perform CRUD operations but also to invoke standard business logic defined in the application (both custom and standard code).

Bound actions can be used in the OData V4 endpoint (as described at and standard Dynamics 365 Business Central APIs.

Imagine you have a codeunit (in the example described here, it's called CustomerWSManagement) that defines a business logic (a set of functions) to work on the Customer entity and you want to call some of these methods from APIs. Our codeunit has two business functions:

  • CloneCustomer: This creates a new customer based on an existing ...

Get Mastering Microsoft Dynamics 365 Business Central now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.