Expand my Community achievements bar.

Adobe Campaign User Groups are live now. Join our Adobe Campaign User Groups and connect with your local leaders!

How to call the variables set in the seed list?

Avatar

Level 2

Hi everyone,

How could we call the variables set in the seed list?

I tried setting variables in the "Additional Data" tab of the seed addresses like below:

1526575_pastedImage_2.png

But I don't know how to use the variable in the HTML.

I've tried getting the variable by using "message.seedMember.targetData.recip_type". Though the system doesn't report any error, it just shows me "undefined" as the value of the variable.

Could anyone tell me how to use it?

2 Replies

Avatar

Employee

You should define the targetData section either like this

<targetData recip_type="SEEDS"></targetData>

You can use the personalisation code <%= targetData.recip_type %>

OR like this

<targetData>

     <recip_type code="SEEDS" />

</targetData>

You can use the personalisation code <%= targetData.recip_type.code %>

Hope this helps.

Regards,
Vipul

Avatar

Level 2

Hi Vipul, thank you so much for the reply! It's good to know the correct XML format.

However, I'm still not able to call the variable. If using the definition:

When I try "<%= targetData.recip_type.code %>" in the HTML source. The system just reminds me it is “undefined”. I should have already previewed the code against the correct seed address.

Currently, I can only get the "recipient" data from the seed address correctly. And not able to get the data from "additional data". I also added enrichment executions in the workflow, will that affect the seed address' additional data's working?