Skip to content

Instantly share code, notes, and snippets.

@wvpv
Created March 8, 2024 20:45
Show Gist options
  • Save wvpv/5e6615e3fa74ae457e91e1d8325e1c97 to your computer and use it in GitHub Desktop.
Save wvpv/5e6615e3fa74ae457e91e1d8325e1c97 to your computer and use it in GitHub Desktop.
Upsert DataExensionObject via SOAP
<?xml version="1.0" encoding="UTF-8"?>
<s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:a="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:u="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
<s:Header>
<a:Action s:mustUnderstand="1">Create</a:Action>
<a:To s:mustUnderstand="1">{{soapEndpoint}}</a:To>
<fueloauth xmlns="http://exacttarget.com">{{accessToken}}</fueloauth>
</s:Header>
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<UpdateRequest xmlns="http://exacttarget.com/wsdl/partnerAPI">
<Options>
<SaveOptions>
<SaveOption>
<PropertyName>*</PropertyName>
<SaveAction>UpdateAdd</SaveAction>
</SaveOption>
</SaveOptions>
</Options>
<Objects xsi:type="DataExtensionObject">
<PartnerKey xsi:nil="true" />
<ObjectID xsi:nil="true" />
<CustomerKey>ExampleMaster</CustomerKey>
<Properties>
<Property>
<Name>SubscriberKey</Name>
<Value>1234567890</Value>
</Property>
<Property>
<Name>EmailAddress</Name>
<Value>[email protected]</Value>
</Property>
<Property>
<Name>FirstName</Name>
<Value>Test</Value>
</Property>
<Property>
<Name>LastName</Name>
<Value>Example</Value>
</Property>
</Properties>
</Objects>
</UpdateRequest>
</s:Body>
</s:Envelope>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment