1

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

Thanks,

3
  • 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? Commented Feb 9, 2014 at 4:05
  • I'll answer the title question, please ask the second as a separate question. Commented Feb 9, 2014 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. Commented Feb 9, 2014 at 4:30

1 Answer 1

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>[email protected]</EmailAddress>
           <SubscriberKey>[email protected]</SubscriberKey>
           <Attributes>
              <Name>MyAttributeName</Name>
              <Value>MyAttributeValue</Value>
           </Attributes>
        </Subscribers>
     </Objects>
  </CreateRequest>

You must log in to answer this question.

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