Using a variable to dynamically change the Delivery Template reference in "New, created from a template"

solva87

31-01-2019

Hi there,

Would really appreciate if someone who knows could let me know if its possible and how to change the reference of the Delivery Template that is used in the "New, created from a template" option of a delivery Activity by using the script tab.

1680565_pastedImage_0.png

Is it possible to override this field in the script tab, similar to how you can, for example, override the delivery label?

Example:

1680581_pastedImage_1.png

Thank you for your consideration,

Sol

Accepted Solutions (1)

Accepted Solutions (1)

Vapsy

Employee

31-01-2019

Hi Sol,

You can achieve that by dynamically modifying the Initialization Script of the delivery activity.

1681022_pastedImage_0.png

As you can see here I've provided the primary ID of the delivery template I wish to employ.

You can define a JS activity in the workflow where you can perform queryDef to get the delivery template primary key based on say Internal name/label.

Regards,
Vipul