This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script runat="server"> | |
Platform.Load("Core","1.1.1"); | |
try{ | |
</script> | |
%%[ | |
set @email = emailaddr | |
if (@email != "") then | |
set @rows = LookupRows("LeadDataExtension","Email", @email) | |
set @rowCount = rowcount(@rows) | |
if @rowCount > 0 then | |
set @row = Row(@rows, 1) | |
set @FirstName = Field(@row,"FirstName") | |
endif | |
endif | |
]%% | |
<script runat="server"> | |
}catch (e) { | |
Write("<b>Error Message:</b> " + Stringify(e.message) + "<br><br><b>Description:</b> " + Stringify(e.description)); | |
} | |
</script> | |
Hello %%=v(@FirstName)=%%! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
One note: if you want to store the error message in an error log DE, you can add this after Write: