Creating a document service

In Dynamics AX, new document services can be created using the AIF Document Service Wizard. The developer has to provide a table and a query representing the document service, and the wizard generates all objects required to run the service. Document services created by the wizard can be further customized to meet more complex requirements.

In this recipe, we will use the AIF Document Service Wizard to create a new document service for exposing currency information. Dynamics AX already contains out-of-the-box currency document service, but for demonstration purposes we will create another one.

How to do it...

Carry out the following steps in order to complete this recipe:

  1. In the AOT, create a new query named CurrencyQuery ...

Get Microsoft Dynamics AX 2012 Development Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.