I am connecting to MS Dynamics 365 via CData to get our data tables. I can access most tables, BUT any of the lines tables (salesinvoicelines, journalLines, etc.) are not returning data, as they usually want some predefined ID to pull line specific data. For example, for sales invoice lines, I would need the specific document ID to pull data. The lines table will NOT run wide open, and so far, I can only get it to return data if I do a pre-SQL statement such as "WHERE documentId IN (x,y.z). Basically, I have to predefine the specific document ID's, but can't just bump the sales lines table against my sales orders for the month and join the data together to return lines where the document ID matches. So far, only the WHERE....IN statement is all that works.
Having this issue with journal lines also: it wants the journal batch ID or journal ID to pull the line detail.
Any thoughts on how to just run the data and get line-item detail without jumping through SQL hoops to get there?