Skip to content

Instantly share code, notes, and snippets.

@MyCueCards
Created August 22, 2022 00:36
Show Gist options
  • Save MyCueCards/a7b17d3ccdf6d04a4bf63efd9b247a16 to your computer and use it in GitHub Desktop.
Save MyCueCards/a7b17d3ccdf6d04a4bf63efd9b247a16 to your computer and use it in GitHub Desktop.
Using SSJS to debug AMPscript. Will produce text to attempt to determine 500 error on CloudPage.
// Originally found: https://salesforce.stackexchange.com/questions/271607/createsalesforceobject-ampscript
<script runat="server">
Platform.Load("Core","1.1.1");
try{
</script>
%%[ YOUR AMPSCRIPT CODE ]%%
<script runat="server">
}catch(e){
Write(Stringify(e));
}
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment