Search code examples
c#axaptax++dynamics-ax-2012-r2aif

Retrieve customer full data from Dynamics ax 2012 and show it in MVCproject


I want to list all customer information in grid-view using MVC c#. also i want to return data from c# to client as json format because I'm using angularjs. I already create AIF and link it with my MVC project , but still i do not know how to retrive all customer data.

any help please


Solution

  • I think this is exactly what you are looking for:

    Query Service [AX 2012]

    The query service is one of the Microsoft Dynamics AX system services that enables you to issue a query for data without using an Application Integration Framework (AIF) document service or creating a custom service. The query service returns data in a dataset and implements a paging mechanism so that you can manage large amounts of data returned by a query.

    Walkthrough: Calling the Query Service with a Static Query

    Another option is to create a custom service or add a service operation to a standard customer service