Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

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

solva87
Level 2
Level 2

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

1 Accepted Solution
Vapsy
Correct answer by
Employee
Employee

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

View solution in original post

2 Replies
Vapsy
Correct answer by
Employee
Employee

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

View solution in original post

solva87
Level 2
Level 2

Hi Vipul,

Worked perfectly, thank you for your assistance.

Solon