S
Santosh Patel
Guest
Due to the nature of implementation of selectQuery and related apis it is not possible to retrieve a many sided relationship using a single query. You will have to use getRelatedIds to retrieve the list of contacts for an account. If there is still an optimization on number of API calls you are looking for, I'd suggest adding limited account fields as related fields on the contact object and running the query as Shiva suggested.
Continue reading...
Continue reading...