Expand my Community achievements bar.

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

TargetData not defined - value coming from an enrichment

Avatar

Level 2

Hello,

I am creating an enrichment to pull in first name from a separate table that will be used in an email.  The field is defined below in Adobe, but when I code the targetData to reference that field, I am getting the error the targetData is not defined.  The way the enrichment is set up it looks like its not actually part of the target data but is a subset of it.  I am wondering if the "/" is causing the issue.

 

Enrichment:

KristenCo4_1-1725553109853.png

 

 

 

Field:

KristenCo4_0-1725553053848.png

 

TargetData reference: 

<%= targetData.onboarding/firstname %>,

KristenCo4_2-1725553232781.png

 

Any help is appreciated! thank you

1 Reply

Avatar

Community Advisor

Hi @KristenCo4 ,

Use the below script,

<%= targetData.onboarding.firstname %>