1
Vote

Using retrieveMultiple with Related Entities

description

If you want to retrieve a list of opportunities where a specific account is the customer, use the opportunity_customer_accounts entity relationship in the context of a specific account:

/AccountSet(guid'[GUID value]')/opportunity_customer_accounts

I suppose the other way would be to use $expand and $filter

Another thing I've noticed is that if you are using retrieve, you can specify opts.select & opts.expand but if using retrieveMultiple you can specify opts.odataQuery

Would be good if you could use either method of parameters against both retrieve & retrieveMultiple

$expand argument as per http://msdn.microsoft.com/en-us/library/gg309461.aspx:

/AccountSet(guid'[GUID value]')?select=Name,opportunity_customer_accounts&$expand=opportunity_customer_accounts

comments