Hi all,
In AX 2012:-
I use to create a query (say fetch Company Info from Datasource CompanyInfo_DS) in AOT and then create a View and add that query inside the Metadata section of that View and when I run that View, it gives me the entire query result. Then I make use of a particular AIF service called QueryService to execute the query.
But in AX 7:-
There is no QueryService as there is no AIF service. Also in the View, I cannot add the Query in the Metadata section, hence I cannot check in the Appl Explorer whether the Query returns proper result.
Also I have read in a blog that, in AX 7 QueryService is replaced by OData service.
Can you guide me in how to run a Query from an external application (say a Console Application) using the OData service?
I have learnt to create a Data Entity, and set its IsPublic property to true to make it OData compatible. But I don't know how to set up a Query to be compatible or called with an OData service in AX7.
Please help.