Book Image

Microsoft Dynamics AX 2012 R2 Services

Book Image

Microsoft Dynamics AX 2012 R2 Services

Overview of this book

Table of Contents (17 chapters)
Microsoft Dynamics AX 2012 R2 Services
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Index

The metadata service


The metadata service allows external consumers to obtain information about the AOT objects within Microsoft Dynamics AX, such as tables, queries, forms, and so on. When we take a look at the operations available in the service, we can see the following two types of operations:

  • Operations that return a list of object names, such as the GetQueryNames operation, which returns a list of query names available in the system

  • Operations that return metadata of one particular object to the consumer, such as the GetTableMetaDataByName operation, which takes an array of table names and returns all of the metadata information available for these tables

Note

You can find detailed class diagrams on MSDN describing the metadata classes at http://msdn.microsoft.com/en-us/library/gg845212.

Filling the combobox

Let's start by taking a look at the code that is executed when the form loads.

To fill the combobox, we need to use the GetQueryNames operation on the metadata service and filter the...