Created
August 22, 2022 00:36
-
-
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.
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
// 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