In Journey Condition - String Array value is not fetching | Community
Skip to main content
arvG10s
May 21, 2025
Solved

In Journey Condition - String Array value is not fetching

  • May 21, 2025
  • 4 replies
  • 766 views

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.

Best answer by DavidKangni

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

4 replies

DavidKangni
Community Advisor
Community Advisor
May 21, 2025

Hi @arvg10s 

Try 

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

Thanks,

David

David Kangni
arvG10s
arvG10sAuthor
May 22, 2025

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.

 

DavidKangni
Community Advisor
DavidKangniCommunity AdvisorAccepted solution
Community Advisor
May 22, 2025

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
AnkitJasani29
Level 6
May 22, 2025
arvG10s
arvG10sAuthor
May 22, 2025

Hello @ankitjasani29 

I am getting below error -

 

AnkitJasani29
Level 6
May 22, 2025

Hi @arvg10s ,

Please try below

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

Mohan_Dugganab
Adobe Employee
Adobe Employee
May 22, 2025

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

 

Sukrity_Wadhwa
Community Manager
Community Manager
June 18, 2025

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