How do I access targetData in delivery template of continuous delivery?

Avatar

Avatar
Level 1
jrstheandonly
Level 1

Likes

0 likes

Total Posts

2 posts

Correct reply

0 solutions
View profile

Avatar
Level 1
jrstheandonly
Level 1

Likes

0 likes

Total Posts

2 posts

Correct reply

0 solutions
View profile
jrstheandonly
Level 1

14-02-2017

I am using Continuous Delivery and trying to access targetData which I have queried in previous activity. However, targetData is not access in delivery template of continuous delivery.

How do I access targetData in delivery template of continuous delivery?

If I use below script in my delivery template, the output is a in below screenshot.

Script:

<%= typeof(targetData) !== 'undefined' ? targetData.productName : "targetData is not defined" %>

<%= typeof(targetData) %>

Output:

1129539_pastedImage_7.png

Thanks,

Rajasekar J

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Validate 1
Level 2
poorvab56881543
Level 2

Likes

7 likes

Total Posts

9 posts

Correct reply

1 solution
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 1
Affirm 1
View profile

Avatar
Validate 1
Level 2
poorvab56881543
Level 2

Likes

7 likes

Total Posts

9 posts

Correct reply

1 solution
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 1
Affirm 1
View profile
poorvab56881543
Level 2

12-03-2019

The issue could be with the operator used to compare targetData type. I suppose it should be != instead of !==.

Regards,

Poorva

Answers (1)

Answers (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-02-2017

Hi jrstheandonly ,

I've created a similar setup on my machine and it has worked properly.

I'm able to generate the targetData values inside delivery.

Did you try sending out the email or were you trying to perform preview?

Please provide complete Steps to Reproduce and maybe we can identify the root cause.

Regards,

Vipul