Quantcast
Channel: NAV Three Tier — mibuso.com
Viewing all articles
Browse latest Browse all 10032

Is it possible to include related entities when querying the OData web service?

$
0
0
I'm on 2013 R2.

I can get sales orders and then for each sales order I can get its sales lines, but this isn't very efficient and the result would be several calls.

What I'd like to do is get sales orders and have sales lines included so that when I use $format=json the sales lines are an array on each sales order object.

Currently the only work-around I see is just including all of the sales header info on the sales line, which means I then have to code DTOs to create the objects instead of just deserializing the json.

Viewing all articles
Browse latest Browse all 10032

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>