Expand my Community achievements bar.

Join us on September 25th for a must-attend webinar featuring Adobe Experience Maker winner Anish Raul. Discover how leading enterprises are adopting AI into their workflows securely, responsibly, and at scale.
SOLVED

In Journey Condition - String Array value is not fetching

Avatar

Level 1

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.

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

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



David Kangni

View solution in original post

8 Replies

Avatar

Community Advisor

Hi @arvG10s 

Try 

count(#{ExperiencePlatform.ProfileFieldGroup.profile._abc.customerAttributes.all((currentDataPackField.exclusionType== "EML"))}) > 0

Thanks,

David



David Kangni

Avatar

Level 1

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.

arvindg96018805_0-1747903082641.png

 

Avatar

Correct answer by
Community Advisor

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



David Kangni

Avatar

Level 8

Hi @arvG10s ,

Based on below reference links

  1. https://experienceleague.adobe.com/en/docs/journey-optimizer/using/orchestrate-journeys/building-adv...
  2. https://experienceleague.adobe.com/en/docs/journey-optimizer/using/content-management/personalizatio...

You can try below
count(
#{ExperiencePlatform.ProfileFieldGroup.profile._abc.customerAttributes.exclusionType
.all(item == "EML")}
) > 0

Avatar

Level 1

Hello @AnkitJasani29 

I am getting below error -

arvindg96018805_0-1747902962774.png

 

Avatar

Level 8

Hi @arvG10s ,

Please try below

count(
#{ExperiencePlatform.ProfileFieldGroup.profile._abc.customerAttributes.exclusionType.all(* == "EML")}
) > 0

Avatar

Employee Advisor

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})

 

Avatar

Administrator

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!



Sukrity Wadhwa