Expand my Community achievements bar.

Create an Audience based on Journey condition

Avatar

Level 1

 Hi, I want to create an audience based on a journey condition. example invalid emails i want to create an audience for invalid email then we can send them day 10 mando comms. I have tried nodeID but it is not working. giving me 0 count. How can i do this? 

1 Reply

Avatar

Level 4

HI @ADLSSt34 ,

 

The best way I can think of to validate an email address is by using a regex expression. However, I’m afraid you won’t be able to create an audience with invalid emails, since, as far as I’m aware, regex is not available in the audience builder.

 

Depending on what you want to achieve, I can think of two possible workarounds:

 

1. Create a broader audience and use a journey node to filter valid addresses. In this case, you can apply:
matchRegExp(#{emailAddressField, '^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\\.[a-zA-Z]{2,}$'})
to validate email addresses.

 

2. If you have already tried contacting invalid email addresses using AJO, you can use data from the ajo_message_feedback_event_dataset to build an audience based on the feedback status field, combined with the failure reason “invalid recipient,” along with errors whose reason is EmailMalformedAddress.

 

This might not completely solve your issue, but hopefully these workarounds will give you some direction toward a better solution.

 

All the best.

Filipe Freitas