Consuming the system metadata service

The metadata service is another system service that allows clients to get information about the AOT object metadata, such as table and field properties, labels, and others. The metadata services are not customizable and are hosted on the Application Object Server, at a fixed address.

In this recipe, we will create a .NET console application that will connect to the metadata service. The application will retrieve a few properties of the Currency and ExchangeRate tables.

How to do it...

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

  1. In Visual Studio, create a new Visual C# Console Application project named ConsumeSystemMetadataService.
  2. Add a new service reference named MetadataService to the project ...

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.