How to use querydef inside delivery activity | Community
Skip to main content
naveens49375819
Level 3
Sep 21, 2018 4:04 AM UTC
Solved

How to use querydef inside delivery activity

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

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
vraghav
vraghavAccepted solution
Employee
Sep 21, 2018 4:12 AM UTC

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

4 replies

naveens49375819
Level 3
Sep 24, 2018 1:12 PM UTC

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

Translate
Employee
Sep 24, 2018 12:26 PM UTC

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

Translate
naveens49375819
Level 3
Sep 21, 2018 4:18 AM UTC

Thanks for the reply,

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

Thanks

Naveen

Translate
vraghav
vraghavAccepted solution
Employee
Sep 21, 2018 4:12 AM UTC

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

Translate