fairly easy question here I guess but I'm having problems with it.
So I was trying an AMPscript exercise in trailhead:
Also, can be found here as exercise 3: https://trailhead.salesforce.com/content/learn/modules/ampscript-for-nondevelopers/practice-using-ampscript
Now in my own environment, I tried this with different variables:
%%[
Var @Subscriber_Key
Set @Subscriber_Key = Subscriber_Key
Var @CardNumber
Set @CardNumber = Lookup("CARDS_DE","Card_Number","Subscriber_Key",@Subscriber_Key)
]%%
%%=v(CardNumber)=%%
I didn't get an error but it didn't return any values. I used the same structure to make this script as in example. Is there something I'm missing here? The attributes should be right.
Attributes in CARDS_DE: Card_Number, Subscriber_Key, Date_Created
Subscriber_Key is also in the "Master DE".
Subscriber_Key
column in your sendable Data Extension? – zuzannamj Feb 27 '20 at 12:09Subscriber_Key
column inCARDS_DE
? Can you update your original question with the structure of your sendable DE and theCARDS_DE
? – zuzannamj Feb 27 '20 at 12:12