Hi Team,
Could you please help me.
We have put condition activity after Read Audience. In Condition activity, we have to split EML population Vs not EML population.
Here attribute exclusionType is String Array storing multiple values like EML, AMB, EFG etc and customerAttributes is Object.
We need to split the audience based on exclusionType=EML and others.
We tried with below condition but it seems like the profile whoever having first position(index) stating as EML is only fetching in condition. It means if any profile having exclusionType=EML on 2nd or 3rd or so forth position, is not at all coming.
Advanced Expression using as:
#{ExperiencePlatform.ProfileFieldGroup.profile._abc.customerAttributes.exclusionType} == ['EML']
Please help here - we need to check EML value at any position in exclusionType attribute.
Solved! Go to Solution.
Topics help categorize Community content and increase your ability to discover relevant content.
Views
Replies
Total Likes
Hi @arvG10s ,
I checked the screenshot of your schema and the exclusionType is the array. I thought the customerAttributes was the array.
this is the good formula in('EML',#{ExperiencePlatform.ProfileFieldGroup.profile._abc.customerAttributes.exclusionType})
My formula will work if customerAttributes is your array.
Sorry for the confusion.
Thanks,
David
Hi @arvG10s
Try
count(#{ExperiencePlatform.ProfileFieldGroup.profile._abc.customerAttributes.all((currentDataPackField.exclusionType== "EML"))}) > 0
Thanks,
David
Hello David,
Thank you for the response.
I tried below code and it is working fine -
in('EML',#{ExperiencePlatform.ProfileFieldGroup.profile._abc.customerAttributes.exclusionType})
I would like to know what error is this? could you pls help in understanding and action to fix.
Hi @arvG10s ,
I checked the screenshot of your schema and the exclusionType is the array. I thought the customerAttributes was the array.
this is the good formula in('EML',#{ExperiencePlatform.ProfileFieldGroup.profile._abc.customerAttributes.exclusionType})
My formula will work if customerAttributes is your array.
Sorry for the confusion.
Thanks,
David
Hi @arvG10s ,
Based on below reference links
You can try below
count(
#{ExperiencePlatform.ProfileFieldGroup.profile._abc.customerAttributes.exclusionType
.all(item == "EML")}
) > 0
Views
Replies
Total Likes
Views
Replies
Total Likes
Hi @arvG10s ,
Please try below
count(
#{ExperiencePlatform.ProfileFieldGroup.profile._abc.customerAttributes.exclusionType.all(* == "EML")}
) > 0
Views
Replies
Total Likes
You can validate on the following lines and what ever satisfies this expression are the profiles who have EML value in the exclusionType string array and the complement can be used for not EML population.
in('EML', {ExperiencePlatform.ProfileFieldGroup.profile._abc.customerAttributes.exclusionType})
Views
Replies
Total Likes
Hi @arvG10s,
Were you able to resolve this query with the help of the provided solutions, or do you still need further assistance? Please let us know. If any of the answers were helpful in moving you closer to a resolution, even partially, we encourage you to mark the one that helped the most as the 'Correct Reply.'
Thank you!
Views
Replies
Total Likes
Views
Likes
Replies