1

This question regarding Exact Target SOAP API. How to pass values to an email template using the API?

Thanks,

  • Which question would you prefer to have answered here? Also do you have any SOAP API calls you have tried yet, or are you just asking for the code sample? – Kelly J Andrews Feb 9 '14 at 4:05
  • I'll answer the title question, please ask the second as a separate question. – Kelly J Andrews Feb 9 '14 at 4:19
  • 1
    Make sure to remove the second portion of the question, as the two are separate items and need to be addressed this way. – Kelly J Andrews Feb 9 '14 at 4:30
1

Here is a sample SOAP envelope from the documentation- this envelope is for a triggered send. You will need to have the personalization string in your template like %%MyAttributeName%%. Your attribute will need to allow updates at send time.

<soap:Body>
  <CreateRequest xmlns="http://exacttarget.com/wsdl/partnerAPI">
     <Options/>
     <Objects xsi:type="TriggeredSend">
        <PartnerKey xsi:nil="true"/>
        <ObjectID xsi:nil="true"/>
        <TriggeredSendDefinition>
           <PartnerKey xsi:nil="true"/>
           <ObjectID xsi:nil="true"/>
           <CustomerKey>Definition_Key</CustomerKey>
        </TriggeredSendDefinition>
        <Subscribers>
           <PartnerKey xsi:nil="true"/>
           <ObjectID xsi:nil="true"/>
           <EmailAddress>aruiz@example.com</EmailAddress>
           <SubscriberKey>aruiz@example.com</SubscriberKey>
           <Attributes>
              <Name>MyAttributeName</Name>
              <Value>MyAttributeValue</Value>
           </Attributes>
        </Subscribers>
     </Objects>
  </CreateRequest>

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.