I’m trying to fetch all Customer
objects, and for each one, I need the email of the Primary Contact (which is a reference to another object).
Is there a way to do this in one API call? Or do I have to get the PrimaryContact key first, then do another request to fetch their email?
I know the aql/objects
endpoint lets you do includeAttributesDeep=true
, which gives you the referenced data — but it also dumps all the attributes, which I don’t want. I just need the email.
Here’s what I’m using right now:
(Image above have been simplified from the original request for clarity.)