2

I have a SOAP request and I want to replace the value in the existing field for the Data Extension Object that I have. It seems to give me a response of "OK" but I do no see that change in the field value in my Data Extension Object.

Can anyone tell me what is wrong with this or if I need to change anything -

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
 <soapenv:Header>
 <fueloauth> abcd </fueloauth>
 </soapenv:Header>
<soapenv:Body>
    <UpdateRequest xmlns="http://exacttarget.com/wsdl/partnerAPI">
    <Options>
      <SaveOptions>
        <SaveOption>
          <PropertyName>DataExtensionObject</PropertyName>
          <SaveAction>UpdateOnly</SaveAction>
        </SaveOption>
      </SaveOptions>
      <RequestType>Asynchronous</RequestType>
    </Options>
        <Objects xsi:type="DataExtensionObject">
        <Client>
           <ID>12345</ID>
        </Client>
        <CustomerKey>abc_pqr_xyz</CustomerKey>
            <PartnerKey xsi:nil="true" />
            <ObjectID xsi:nil="true" />
            <Email>[email protected]</Email>       
        <Attributes>
          <Attribute>
            <Name>Email</Name>
            <Value>[email protected]</Value>
          </Attribute>
          </Attributes>
        </Objects>
    </UpdateRequest>
  </soapenv:Body>
</soapenv:Envelope>
2
  • I would try changing the request type to Synchronous as a test to see if you get a better error message.
    – Tyler
    Feb 6, 2020 at 20:06
  • @Tyler I still get the same message even if it is 'Synchronous'. Just the difference is - for 'Asynchronous' - it says 'It will get updated soon' but never gets updated and for 'Synchronous' it says - Updated but nothing gets updated in my field value. The value in the field is still the same as the old one.
    – BKT
    Feb 7, 2020 at 17:23

1 Answer 1

2

Anyone looking for an answer to the above question - the below code worked -

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
 <soapenv:Header>
 <fueloauth>Add your appropriate authentication key/code here which you might be using</fueloauth>
 </soapenv:Header>
<soapenv:Body>
    <UpdateRequest xmlns="http://exacttarget.com/wsdl/partnerAPI">
    <Options>
      <SaveOptions>
        <SaveOption>
          <PropertyName>DataExtensionObject</PropertyName>
          <SaveAction>UpdateOnly</SaveAction>
        </SaveOption>
      </SaveOptions>
      <RequestType>Asynchronous</RequestType>
    </Options>
        <Objects xsi:type="DataExtensionObject">
        <Client>
           <ID>7209246</ID>
        </Client>
        <CustomerKey>abcd_pqrs</CustomerKey>
        <Properties>
          <Property>
            <Name>Subscriber_key</Name>
            <Value>[email protected]</Value>
          </Property>
          <Property>
            <Name>Email</Name>
            <Value>[email protected]</Value>
          </Property>
          <Property>
            <Name>First_Name</Name>
            <Value>TestFirstName3</Value>
          </Property>
          <Property>
            <Name>Last_Name</Name>
            <Value>TestLastName3</Value>
          </Property>
        </Properties>
        </Objects>
    </UpdateRequest>
  </soapenv:Body>
</soapenv:Envelope>

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .