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.
2. Add a new data source to the newly created query with the following properties:
Property
Value
Name
Currency
Table
Currency
Update
Yes
3. In the data source, change the properties of the Fields node as follows:
Property...