Created
April 18, 2019 14:00
-
-
Save jdeblank/59ccf05aa881bfd30f83358596718f49 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 { | |
var de = DataExtension.Init('DE Name goes here'); | |
var data = { | |
id: Request.GetFormField("id"), | |
FirstName: Request.GetFormField("firstname"), | |
Email: Request.GetFormField("email") | |
} | |
var result = de.Rows.Add(data); | |
Write("Result: " + Stringify(result)); | |
} catch (ex) { | |
Write("An error has occurred: " + Stringify(ex)); | |
} | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment