---
schema_version: "1"
id: 7d5eb6757702852a8fc3e1904022955a99d3b97b52b94cca5df14b5959807ed3
title: Rows.Add
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/marketing-cloud/guides/mc-programmatic-content/ssjs_dataExtensionRowsAdd.md
canonical_url: https://developer.salesforce.com/docs/marketing/marketing-cloud/guide/ssjs_dataExtensionRowsAdd.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 0007d4bfd0ff35a96171c18bfc2037c4dbc9f0a061c84596ec9dbc7d1a2a4a57
products:
  - Marketing Cloud Engagement APIs and Programmatic Languages
  - Marketing Cloud
---
# Rows.Add

Add a row or array of rows to the initialized data extension

## Syntax

`Rows.Add(1)`

## Properties

The `Rows.Add()` function has one property.

| Ordinal | Type   | Description                                                                                              |
| ------- | ------ | -------------------------------------------------------------------------------------------------------- |
| `1`     | Object | Required. Information to include in a row. Specify one object for each row to add to the data extension. |

## Usage

This sample code adds multiple rows to the `birthdayDE` data extension.

```js
// Create an array that contains the rows to add.
var arrContacts = [
  {
    Email: "jdoe@example.com",
    FirstName: "John",
    LastName: "Doe",
  },
  {
    Email: "aruiz@example.com",
    FirstName: "Angel",
    LastName: "Ruiz",
  },
];

// Initialize the target data extension.
var birthdayDE = DataExtension.Init("birthdayDE");

// Add the data to the data extension.
birthdayDE.Rows.Add(arrContacts);
```

The function returns the number of rows affected by the call.
