Skip to content

Instantly share code, notes, and snippets.

@jdeblank
Created April 18, 2019 14:00
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jdeblank/59ccf05aa881bfd30f83358596718f49 to your computer and use it in GitHub Desktop.
Save jdeblank/59ccf05aa881bfd30f83358596718f49 to your computer and use it in GitHub Desktop.
<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