microsoft / Dynamics-AX-Integration

Dynamics AX Integration samples and demos.
285 stars 356 forks source link

How to get a list of Sales Agreements #132

Open avaMar23 opened 10 months ago

avaMar23 commented 10 months ago

I am using the code provided in the ODataConsoleApplication and mimicking similar functionality. In QueryExamples.cs, I create my own functions and pass the context as input.

However, I cannot seem to get a list of Sales Agreements, in the same way I can get a list of Sales Orders for instance (e.g. context.SalesOrderHeaders.Where(x => x.InvoiceCustomerAccountNumber== "12345");)

Is this functionality not supported, or is there another way of doing this?