Skip to content

Instantly share code, notes, and snippets.

@zuzannamj
Last active February 4, 2020 10:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zuzannamj/3ce89498091cd355d1e776746d77b252 to your computer and use it in GitHub Desktop.
Save zuzannamj/3ce89498091cd355d1e776746d77b252 to your computer and use it in GitHub Desktop.
%%[
set @firstName = AttributeValue("FirstName")
if empty(@firstName) then
InsertDE("RaiseErrorLog", "JobID", jobid, "EmailName", emailname_, "SubscriberKey", _subscriberkey, "EmailAddress", emailaddr)
RaiseError("Missing first name", true, 1)
else
set @greeting = @firstName
endif
]%%
<p>Dear %%=v(@greeting)=%%,</p>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment