0

I am trying to check the created date for a subscriber upon sending an email to them. I then want to use that value to do something different in the email if the Created Date is today to basically include a welcome section in a triggered send.

I have tried both

Set @CreatedDate = [CreatedDate]
Set @CreatedDate = [_CreatedDate]

but they both give the error: The SET variable value expression is invalid.

Is there a better way to do this or what the personalization string is for it?

1

You'll need a Profile Attribute or Data Extension column named CreatedDate for this to work. There's no out-of-the-box CreatedDate personalization string. The AttributeValue() function will return an empty string if it doesn't exist.

%%[

var @CreatedDate
set @CreatedDate = AttributeValue("CreatedDate")

]%%
<br>CreatedDate: %%=v(@CreatedDate)=%%
|improve this answer|||||

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.