Hi, I’d like to use a condition within a journey to filter profiles based on email domains, specifically emails with the domain @asd.com from the email object.
For example, if a profile has the following emails: [a@asd.com, b@bsd.com, c@mgh.com], I want to ensure the journey only sends emails to those with the @asd.com domain.
How can I achieve this using advanced expressions in a condition?
I’ve tried an approach, but it seems to be returning all emails associated with the profile rather than filtering for the specific domain.
Thanks
해결되었습니다! 솔루션으로 이동.
조회 수
답글
좋아요 수
SOLVED With this expression I return the desired email domain from the profile's email list Object:
#{ExperiencePlatform.ProfileFieldGroup.profile.identityMap.entry('email').first(containIgnoreCase(currentDataPackField.id, 'adobe.com')).id}
조회 수
답글
좋아요 수
mm that's not working bc it's returning a boolean and I want to send email to "a@asd.com" from [a@asd.com, b@bsd.com, c@mgh.com] using a kind of contain function.
I mean, I want to return from the whole funcion the "a@asd.com" email
Thanks
조회 수
답글
좋아요 수
any help?
조회 수
답글
좋아요 수
조회 수
답글
좋아요 수
thanks! but I need the string value, for example, "a@asd.com", not a boolean.
The use case is that I need to send that string to Slack using custom action, that's why I need the exact value and not the boolean.
조회 수
답글
좋아요 수
You can use the following expression to filter those profiles that have 'asd.com' as the email domain value
containIgnoreCase(serializeList(#{ExperiencePlatform.ProfileFieldGroup.profile.identityMap.entry('email').id}, "|", true),'@asd.com')
조회 수
답글
좋아요 수
Thanks! please take a look to my response to ZoeKi.
조회 수
답글
좋아요 수
SOLVED With this expression I return the desired email domain from the profile's email list Object:
#{ExperiencePlatform.ProfileFieldGroup.profile.identityMap.entry('email').first(containIgnoreCase(currentDataPackField.id, 'adobe.com')).id}