InsertDE
Overview
Inserts information into a data extension as indicated by the array containing the listed column name and value pairs. You can include multiple column name and value parts in a single call. You can use this method in sendable contexts, such as email messages.Syntax
InsertDE(1, 2, 3)
| Ordinal | Type | Description | |
|---|---|---|---|
| 1 | string | Required | Name of data extension |
| 2 | array | Required | Names of columns to insert into data extension |
| 3 | array | Required | Names of values to insert into data extension |
Example
<script runat="server">
var rows = Platform.Function.InsertDE("CustomerData",["FirstName","LastName","Email"],["Joe","Smith","jsmith@example.com"]);
</script>