Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
<script runat="server">
{{your script goes here}}
<script runat="server">
var errorMsg = Stringify(e.message)
Write("Oops, something went wrong!<br>Please contact 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 });
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment