We have a Journey in AJO that is an event based audience. In our full data model, customers can have multiple accounts. Within the event, it tells us which account the customer is using to trigger the event.
However before sending the e-mail we need to execute an account eligibility check (i.e. check our account level suppressions) by reconciling that account with the account data in the customer real time CDP / AEP.
What type of syntax or how can we pull the account from the event then use that account to compare against the customers CDP/AEP profile?
Views
Replies
Total Likes
@user77095 In AJO you can reference both the fields that arrived in the triggering event and the arrays that live on the real-time profile inside the same Condition node. Considering that the profile must store the accounts as an array field (object or string) so the Condition node can reach them.
1.
2.
/* event object contains a single accountId */
var thisAccountId= event.account.accountId;
/* profile array: accounts[ ] each has id + suppression flag */
exists(
filter(profile.accounts,
a -> a.accountId == thisAccountId && a.suppressed == true)
)
@Mayank_Gandhi
We will try this. Is this using the advanced mode in the condition?
Is it possible to do if the even also has multiple accounts? Some customer may receive the event for say 2 out of their 3 accounts because the first two accounts are active while the 3rd account is closed.
The event is also an array
Views
Replies
Total Likes
We tried inputting the code and got errors. Does it look like we are implementing it right?
Views
Replies
Total Likes
This syntax wont work. Please refer to this page https://experienceleague.adobe.com/en/docs/journey-optimizer/using/content-management/personalizatio... for the AJO helper functions
Thank You
Views
Replies
Total Likes
Hi @user77095,
Was the given solution by @Umamaheswari_Yakkala helpful to resolve your query or do you still need more help here? Do let us know. In case the given solution was helpful, then kindly choose it as the 'Correct Reply'.
Thanks!
Views
Replies
Total Likes