Hi,
I have created a segment and its query like below
PROFILE(contact, contact_1)
.RELATE(account_contact_primarycontactid, account_1)
.FILTER(contact_1.address1_stateorprovince == 'California' && account_1.address1_stateorprovince == 'Washington')
In my customer journey, I added a custom channel tile. When a custom channel activity record was created, it will trigger my plugin code.
In plugin, I would like to use the conditions of the related entity in the segment query /account_1.address1_stateorprovince == 'Washington'/ to find those account records of contact.
How can I achieve this? My example is simple. What if the query is getting complex and involve multiple related entities?
Is there a way to retrieve the query as FetchXML or QueryExpression?
Thanks.
ART