Certification Aid wants to add records to a Data Extension using the SOAP API. Which object can be used for this? Choose 1.
To add records to a Data Extension using the SOAP API, the DataExtensionObject object is utilized. This object represents a row within a data extension.
DataExtensionObject: This object is specifically designed to interact with data extensions, allowing you to insert, update, and retrieve rows. Here is a basic example of how to use this object to add a record:
<s:Envelope xmlns:s='http://schemas.xmlsoap.org/soap/envelope/'> <s:Body> <CreateRequest xmlns='http://exacttarget.com/wsdl/partnerAPI'> <Objects xsi:type='DataExtensionObject'> <CustomerKey>DataExtensionExternalKey</CustomerKey> <Properties> <Property> <Name>SubscriberKey</Name> <Value>example@example.com</Value> </Property> <Property> <Name>FirstName</Name> <Value>John</Value> </Property> <Property> <Name>LastName</Name> <Value>Doe</Value> </Property> </Properties> </Objects> </CreateRequest> </s:Body> </s:Envelope>
: Salesforce SOAP API Developer Guide
Currently there are no comments in this discussion, be the first to comment!