This question regarding Exact Target SOAP API. How to pass values to an email template using the API?
Thanks,
This question regarding Exact Target SOAP API. How to pass values to an email template using the API?
Thanks,
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>