Avatar

Level 4

Hello mustufam59678037​,

If I have this conditions on my original delivery (winner delivery in your case):

1725813_pastedImage_0.png

I can replace the conditions with this JS code:

delivery.output.seedList.where[0].condition[0].boolOperator = 'AND';

delivery.output.seedList.where[0].condition[0].expr = "[custom_nms_recipient/@email] IN ('xyz123@email.com', 'xyz123@ymail.com')";

delivery.output.seedList.where[0].condition[0].condition[0].boolOperator = 'AND';

delivery.output.seedList.where[0].condition[0].condition[0].condition[0].boolOperator = 'OR';

delivery.output.seedList.where[0].condition[0].condition[0].condition[0].expr = '[folder/@id]=9787930';

delivery.output.seedList.where[0].condition[0].condition[0].condition[1].expr = '[folder/@id]=882531';

And my duplicated delivery contains the new conditions:

1725821_pastedImage_2.png

I hope that helps.

Thanks and Regards,

Geoffrey.