How to use querydef inside delivery activity

Avatar

Avatar
Shape 1
Level 2
naveens49375819
Level 2

Likes

4 likes

Total Posts

29 posts

Correct reply

3 solutions
Top badges earned
Shape 1
Give Back 5
Give Back 3
Give Back
Ignite 1
View profile

Avatar
Shape 1
Level 2
naveens49375819
Level 2

Likes

4 likes

Total Posts

29 posts

Correct reply

3 solutions
Top badges earned
Shape 1
Give Back 5
Give Back 3
Give Back
Ignite 1
View profile
naveens49375819
Level 2

20-09-2018

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

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Validate 1
Employee
Vapsy
Employee

Likes

370 likes

Total Posts

726 posts

Correct reply

342 solutions
Top badges earned
Validate 1
Boost 50
Boost 5
Boost 3
Boost 250
View profile

Avatar
Validate 1
Employee
Vapsy
Employee

Likes

370 likes

Total Posts

726 posts

Correct reply

342 solutions
Top badges earned
Validate 1
Boost 50
Boost 5
Boost 3
Boost 250
View profile
Vapsy
Employee

20-09-2018

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

Answers (3)

Answers (3)

Avatar

Avatar
Shape 1
Level 2
naveens49375819
Level 2

Likes

4 likes

Total Posts

29 posts

Correct reply

3 solutions
Top badges earned
Shape 1
Give Back 5
Give Back 3
Give Back
Ignite 1
View profile

Avatar
Shape 1
Level 2
naveens49375819
Level 2

Likes

4 likes

Total Posts

29 posts

Correct reply

3 solutions
Top badges earned
Shape 1
Give Back 5
Give Back 3
Give Back
Ignite 1
View profile
naveens49375819
Level 2

24-09-2018

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

Avatar

Avatar
Boost 3
Level 1
preethamk581070
Level 1

Likes

3 likes

Total Posts

5 posts

Correct reply

0 solutions
Top badges earned
Boost 3
Boost 1
Applaud 5
View profile

Avatar
Boost 3
Level 1
preethamk581070
Level 1

Likes

3 likes

Total Posts

5 posts

Correct reply

0 solutions
Top badges earned
Boost 3
Boost 1
Applaud 5
View profile
preethamk581070
Level 1

24-09-2018

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

Avatar
Shape 1
Level 2
naveens49375819
Level 2

Likes

4 likes

Total Posts

29 posts

Correct reply

3 solutions
Top badges earned
Shape 1
Give Back 5
Give Back 3
Give Back
Ignite 1
View profile

Avatar
Shape 1
Level 2
naveens49375819
Level 2

Likes

4 likes

Total Posts

29 posts

Correct reply

3 solutions
Top badges earned
Shape 1
Give Back 5
Give Back 3
Give Back
Ignite 1
View profile
naveens49375819
Level 2

20-09-2018

Thanks for the reply,

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

Thanks

Naveen