phpexact-online

Exact Online API - Fetch child entity attributes in same call as parent


Request Url: https://start.exactonline.nl/docs/HlpRestAPIResourcesDetails.aspx?name=CRMAccounts

While fetching all CRMAccounts, I would also like to fetch some fields stored in AccountManager. I have tried to use the 'expand' query parameter for this purpose, but it seems this parameter only works for collections.

Is there any way to retrieve some fields from AccountManager, without doing another call with the GUID? Something like AccountManager.BirthName as 'select' argument would be ideal.

I have already asked this question on their community/support, but haven't received any feedback thus far.

Thanks in advance!


Solution

  • Finally the support of Exact Online responded, but they told me it is not possible to fetch child entities within the same request. The entities will have to be fetched within a separate call using the GUID provided in the initial call.

    I'm guessing Guido' Invantive software has developped some kind of wrapper to do this automatically, but that is not feasible for our situation.

    Therefore, as it is concluded Exact Online's API doesn't support this kind of behavior, I am accepting my own answer.