SOLVED

Re: Velocity should be able to block an email from being send

Go to solution
Franky_Ruyssch2
Level 4

Velocity should be able to block an email from being send

Looking for a solution for the following case:
A smart list is defining an audience for a certain email campaign.

The content in that email is defined by velocity scripting, it is looking to a json object (stored in the script token ).

Depending on additional parameters, there is a change that the velocity code is returning an empty string as the result of the routine. ( which would be completely correct)
In that case I should block the email from being send for that person.

Does someone has a proposal on how to implement this?

Franky Ruysschaert
1 ACCEPTED SOLUTION

Accepted Solutions
Jo_Pitts1
Level 10 - Community Advisor

Re: Velocity should be able to block an email from being send

@Franky_Ruyssch2 ,

Try this post from @SanfordWhitemanhttps://blog.teknkl.com/velocity-poison-pill-throw-error-revisited/

If I've understood your use case, I think this does exactly what you're after.

Cheers

Jo

View solution in original post

2 REPLIES 2
Darshil_Shah1
Level 10 - Community Advisor + Adobe Champion

Re: Velocity should be able to block an email from being send

While velocity can customize the content within an email, in the conventional ways, it can most certainly not control the email send activity to the person based on certain conditions like campaign filters/flow conditions can do.
Y
ou can prevent the person from qualifying for the campaign by storing the data in a CO instead and use the CO filters in the campaign's smart list, along with the other filters in the SL that you're currently using in the velocity to determine if the email should be sent to a person or not.

The idea is to let only people in if they qualify to receive the email by filtering out the people who should not receive the email by looking at the CO data and other filters. Hope this helps!

Jo_Pitts1
Level 10 - Community Advisor

Re: Velocity should be able to block an email from being send

@Franky_Ruyssch2 ,

Try this post from @SanfordWhitemanhttps://blog.teknkl.com/velocity-poison-pill-throw-error-revisited/

If I've understood your use case, I think this does exactly what you're after.

Cheers

Jo