Skip to main content
jrstheandonly
Feb 15, 2017 7:16 AM UTC
Solved

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

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:

Thanks,

Rajasekar J

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
poorvab56881543
poorvab56881543Accepted solution
Level 2
Mar 12, 2019 6:07 PM UTC

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

Regards,

Poorva

2 replies

vraghav
Adobe Employee
Adobe Employee
Feb 20, 2017 10:17 AM UTC

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

Translate
poorvab56881543
poorvab56881543Accepted solution
Level 2
Mar 12, 2019 6:07 PM UTC

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

Regards,

Poorva

Translate