Expand my Community achievements bar.

We are excited to introduce our latest innovation to enhance the Adobe Campaign user experience — the Adobe Campaign v8 Web User Interface!
SOLVED

How to use querydef inside delivery activity

Avatar

Level 2

Hi,

Can you please let me know how to use querydef inside a delivery activity?

I have tried but got an error has xtk not defined.

Thanks

Naveen

1 Accepted Solution

Avatar

Correct answer by
Employee Advisor

Hi naveens49375819,

You cannot. MTA cannot access the database and hence it gives you this error.

Work all data fetching tasks on the workflow itself.

Regards,
Vipul

View solution in original post

4 Replies

Avatar

Correct answer by
Employee Advisor

Hi naveens49375819,

You cannot. MTA cannot access the database and hence it gives you this error.

Work all data fetching tasks on the workflow itself.

Regards,
Vipul

Avatar

Level 2

Thanks for the reply,

Is there a way to create delivery variable through an javascript?

Thanks

Naveen

Avatar

Level 2

Hi Naveen,

You can create a variable from delivery Properties >> Variable tab >> Add a variable , select the data type and choose if its a static or Expression. If its dynamic, you have to fetch the value via script and pass to the variable you have defined.

Regards,

Preetham

Avatar

Level 2

Thanks for the reply Preetham,

We can create variables using javascript that too for only delivery templates using xtk.session.write method.

Regards

Naveen S