Skip to main content
Silvio6
Level 6
Jan 20, 2025 7:22 PM UTC
Solved

Return object from all() function

Hi I want to send the whole list of emails of a profile to Slack

 

I've tried this:

 

 

no errors there but I have this error within the journey

 

 

 

what am I doing wrong?

 

Thanks

Silvio6
Silvio6Accepted solution
Level 6
Jan 22, 2025 5:25 PM UTC

SOLUTION:

serializeList(#{ExperiencePlatform.ProfileFieldGroup.profile.identityMap.entry('email').id}, ",", false)

That returned all emails associated to a profile

3 replies

vraghav
Adobe Employee
Adobe Employee
Jan 21, 2025 2:52 AM UTC

@silvio6 try 

serializeList(#{ExperiencePlatform.ProfileFieldGroup.profile.identityMap.all().id}, ",",false)
Translate
Silvio6
Silvio6Author
Level 6
Jan 21, 2025 7:20 PM UTC

not working:



And when I add the email mapping I have this error:

 

Translate
Silvio6
Silvio6AuthorAccepted solution
Level 6
Jan 22, 2025 5:25 PM UTC

SOLUTION:

serializeList(#{ExperiencePlatform.ProfileFieldGroup.profile.identityMap.entry('email').id}, ",", false)

That returned all emails associated to a profile

Translate