---
schema_version: "1"
id: b3a472c7037e90f1fd75f9b5738d1509c81f3dddbff7b3995d29f6782e0086a2
title: Adding Data to Data Extension Object
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/marketing-cloud/guides/mc-apis/adding_data_to_data_extension_object.md
canonical_url: https://developer.salesforce.com/docs/marketing/marketing-cloud/guide/adding_data_to_data_extension_object.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 72ef5874bd42c331f05bee162bfc723f2c7f692cb661d2265a72bfec362c3cb9
products:
  - Marketing Cloud Engagement APIs and Programmatic Languages
  - Marketing Cloud
---
# Adding Data to Data Extension Object

Add more data to an existing data extension object when you add new records to your data extension.

## Usage

This code example contains a SOAP envelope that you can use to add data to an existing data extension.

```xml
<soap:Envelope
  xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xmlns:xsd="http://www.w3.org/2001/XMLSchema"
  xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing"
  xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
  xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
  <soap:Header>
    <wsse:Security soap:mustUnderstand="1">
      <wsse:UsernameToken
        wsu:Id="SecurityToken-6421ac0b-a454-42a3-99f7-a77ace024446">
        <wsse:Username>XXXXX</wsse:Username>
        <wsse:Password
          Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText"
          >XXXXX</wsse:Password>
      </wsse:UsernameToken>
    </wsse:Security>
  </soap:Header>
  <soap:Body>
    <CreateRequest xmlns="http://exacttarget.com/wsdl/partnerAPI">
      <Options />
      <Objects xsi:type="DataExtensionObject">
        <PartnerKey xsi:nil="true" />
        <ObjectID xsi:nil="true" />
        <CustomerKey>Definition_Key</CustomerKey>
        <Properties>
          <Property>
            <Name>EmailAddress</Name>
            <Value>johndoe@example.com</Value>
          </Property>
          <Property>
            <Name>FirstName</Name>
            <Value>John</Value>
          </Property>
          <Property>
            <Name>LastName</Name>
            <Value>Doe</Value>
          </Property>
          <Property>
            <Name>PrimaryKey</Name>
            <Value>PrimaryKey</Value>
          </Property>
        </Properties>
      </Objects>
    </CreateRequest>
  </soap:Body>
</soap:Envelope>
```
