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.

1<soap:Envelope
2  xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
3  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4  xmlns:xsd="http://www.w3.org/2001/XMLSchema"
5  xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing"
6  xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
7  xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
8  <soap:Header>
9    <wsse:Security soap:mustUnderstand="1">
10      <wsse:UsernameToken
11        wsu:Id="SecurityToken-6421ac0b-a454-42a3-99f7-a77ace024446">
12        <wsse:Username>XXXXX</wsse:Username>
13        <wsse:Password
14          Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText"
15          >XXXXX</wsse:Password>
16      </wsse:UsernameToken>
17    </wsse:Security>
18  </soap:Header>
19  <soap:Body>
20    <CreateRequest xmlns="http://exacttarget.com/wsdl/partnerAPI">
21      <Options />
22      <Objects xsi:type="DataExtensionObject">
23        <PartnerKey xsi:nil="true" />
24        <ObjectID xsi:nil="true" />
25        <CustomerKey>Definition_Key</CustomerKey>
26        <Properties>
27          <Property>
28            <Name>EmailAddress</Name>
29            <Value>johndoe@example.com</Value>
30          </Property>
31          <Property>
32            <Name>FirstName</Name>
33            <Value>John</Value>
34          </Property>
35          <Property>
36            <Name>LastName</Name>
37            <Value>Doe</Value>
38          </Property>
39          <Property>
40            <Name>PrimaryKey</Name>
41            <Value>PrimaryKey</Value>
42          </Property>
43        </Properties>
44      </Objects>
45    </CreateRequest>
46  </soap:Body>
47</soap:Envelope>