Can Velocity tell a test send from a live send

Highlighted
Level 5

Can Velocity tell a test send from a live send

Good Morning all.

Can Velocity tell a test send from a live send?

We are doing some stuff where modules get commented out based on lead attributes (which works very well) along with a counter (which combined essentially give us 'show modules that meet lead criteria, but only as long as the counter is less than or equal to four), but it would be handy to be able to display all the modules when doing a test send to ensure they are all rendering/behaving as expected.

 

Cheers

Jo

1 REPLY 1
Highlighted
Level 10 - Community Moderator

Re: Can Velocity tell a test send from a live send

The Lead ID in a sample is 0.  

 

If you find my post where I talk about getting the Lead ID, Email Asset ID, etc. use the code from there.