Check if delivery is in preview for typology control rule | Community
Skip to main content
emil_rowland
Level 2
April 14, 2021
Question

Check if delivery is in preview for typology control rule

  • April 14, 2021
  • 0 replies
  • 661 views

Hi,

 

I have a typology rule to fail a delivery if a variable is not set. But for proof and preivew I don't want it to fail. I have fixed it for proof but haven't find any flag for preivew.

Do anyone know if there is a flag that I can check if it's in preview or if I can skip the typology rule.

The typology rule is a controll type and is executed at start of targeting.

 

current code:

if(delivery.FCP == 1) { //Skip proof return true; } if(variables.var1 == 1){ return true; } return false;

 

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.