---
schema_version: "1"
id: 65f6b7b3020c9207d099a69b7e47bc6158e92a4702de9b9892c658981abab1b8
title: InsertDE
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/marketing-cloud/guides/mc-programmatic-content/ssjs_platformDataExtensionInsertDE.md
canonical_url: https://developer.salesforce.com/docs/marketing/marketing-cloud/guide/ssjs_platformDataExtensionInsertDE.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: c69b681f0eb3f82d92e762ab4e758f5c5008d78dafcbb8fffbddc83a9a6f4749
products:
  - Marketing Cloud Engagement APIs and Programmatic Languages
  - Marketing Cloud
---
# InsertDE

Inserts rows into a data extension. This function doesn’t return any output.

You can use this function to insert data into a data extension from emails. Use the [InsertData()](https://developer.salesforce.com/docs/marketing/marketing-cloud/guide/ssjs_platformDataExtensionInsertData.md) function to insert data from CloudPages, landing pages, microsites, and SMS messages in MobileConnect.

## Syntax

`Platform.Function.InsertDE(dataExt, columnNames[], values[])`

The `InsertDE()` function has three parameters.

- `dataExt` (string): Required. The name of the data extension that you want to insert a row into.
- `columnNames[]` (array): Required. An array that contains the names of the columns to populate with data in the new row.
- `values[]` (array): Required. An array that contains the values to insert into the columns specified in the `columnNames` array.

## Example

To insert data into a data extension, specify the data extension that you want to insert a row into. Next, specify the columns that you want to populate with data in the new row. Finally, specify the values for those columns. Make sure that the values in the second array align with the columns in the first array.

```xml
<script runat="server">
  var response = Platform.Function.InsertDE("MembershipRewardsProgramme",["MemberId","FirstName","Surname"],[11, "Pooja", "Chatterjee"]);
</script>
```
