Created
June 5, 2020 14:05
-
-
Save zuzannamj/8263bcd1e5690933276226bc43dd8411 to your computer and use it in GitHub Desktop.
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> | |
{{your script goes here}} | |
<script runat="server"> | |
}catch(e){ | |
var errorMsg = Stringify(e.message) | |
Write("Oops, something went wrong!<br>Please contact info@email.com so we can help you finalize your request."); | |
var targetDE = 'xxxxxxx-xxxxxxx-xxxxxxxxx'; //pass external key of the target DE | |
var logDE = DataExtension.Init(targetDE); | |
logDE.Rows.Add({ Error: errorMsg }); | |
} | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment