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
BedrockMission!

Learn more

View all

Sign in to view all badges

SOLVED

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

jrstheandonly
Level 1
Level 1

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

1 Accepted Solution
poorvab56881543
Correct answer by
Level 2
Level 2

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

Regards,

Poorva

View solution in original post

2 Replies
Vapsy
Employee
Employee

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

poorvab56881543
Correct answer by
Level 2
Level 2

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

Regards,

Poorva

View solution in original post