Any solution: if Mytoken value is empty, not sending the email to that record? | Community
Skip to main content
Level 2
Apr 1, 2021 4:39 PM UTC
Solved

Any solution: if Mytoken value is empty, not sending the email to that record?

Mytoken is used in the email content and sometime happens that Smart campaign qualifying the records but Mytoken with the empty value.

 

Thus, Email preview with the empty space.

 

Is there any way to check if the Mytoken value is empty, not sending the email to that record?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
SanfordWhiteman
SanfordWhitemanAccepted solution
Level 10
Apr 2, 2021 6:00 AM UTC

The only way to do this is using what I call a "poison pill" — deliberately throwing an error from VTL so the email will soft bounce. Not a technique I recommend until you have a bunch of Velocity experience.

3 replies

SanfordWhiteman
Level 10
Apr 1, 2021 6:54 PM UTC

Are you talking about a Velocity {{my.token}}?

Translate
Level 2
Apr 2, 2021 5:42 AM UTC

Yes
That Mytoken is used in the Email content.

Translate
SanfordWhiteman
SanfordWhitemanAccepted solution
Level 10
Apr 2, 2021 6:00 AM UTC

The only way to do this is using what I call a "poison pill" — deliberately throwing an error from VTL so the email will soft bounce. Not a technique I recommend until you have a bunch of Velocity experience.

Translate