Return object from all() function | Community
Skip to main content
Silvio6
January 20, 2025
Solved

Return object from all() function

  • January 20, 2025
  • 2 replies
  • 539 views

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

Best answer by Silvio6

SOLUTION:

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

That returned all emails associated to a profile

2 replies

vraghav
Adobe Employee
Adobe Employee
January 21, 2025

@silvio6 try 

serializeList(#{ExperiencePlatform.ProfileFieldGroup.profile.identityMap.all().id}, ",",false)
Silvio6
Silvio6Author
January 21, 2025

not working:



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

 

Silvio6
Silvio6AuthorAccepted solution
January 22, 2025

SOLUTION:

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

That returned all emails associated to a profile