0

sorry if was a duplicated post but i'm really facing problems to send a extra data through the Triggerend Sen. We are aiming to send data with some additional information that can be possible to read in the email templates. So, the question is how can i do that? I was reading this following tutorials:

  1. Using Triggered Sends to Confirm Purchases https://help.exacttarget.com/en/technical_library/web_service_guide/technical_articles/using_triggered_sends_to_confirm_purchases/

  2. Why Pass Content to a Triggered Send Message at Send Time http://help.exacttarget.com/en/documentation/exacttarget/content/ampscript/using_ampscript_with_the_web_service_api/passing_content_to_a_triggered_send_message_at_send_time/

But, still seems confused to me, in both tutorials has the "XML" attribute but i dont know how to read it using Data Extension, or just a Subscriber Attribute or even where this XML attribute comes

So, I would appreciate some help to understand how i can do that using Triggerend Send. ( Adding attributes and reading in the email template using AMPscript)

Thanks.

1

You can pass "attributes" (extra data) on your API calls that can be used within your emails similarly to how you would normally pass any attribute for a subscriber.

Depending on what type of additional information you're trying to include, within your email that is being triggered, you would need to include a personalization string like, %%attributename1%%. This will then utilize the Value you're passing at the time of send. If this attribute doesn't exist within the "Profile Management" section (under Subscribers tab) in your account, you can also use a data extension with this field/attribute name and assign it to this triggered send definition. This will allow the email to pass validation upon saving your triggered send definition.

The XML Attribute you're referring to is just a manually created attribute on the account that is given as an example. They are using AMPScript to Build the email/Rowset from XML formatted data. You may not need to use this to accomplish what you're doing and you can create and name your attribute (or Data Extension field name) anything you want. You would then just need to pass it as an attribute when making your API call similar to the below.

<TriggeredSend>
    <TriggeredSendDefinition>
        <CustomerKey>XXXXX</CustomerKey>
    </TriggeredSendDefinition>
    <Subscribers>
        <SubscriberKey>johndoe@example.com</SubscriberKey>
        <EmailAddress>johndoe@example.com</EmailAddress>
        <Attributes>
            <Name>attributename1</Name>
            <Value>This value will be passed to my email at the time the email is triggered</Value>
        </Attributes>
    </Subscribers>
</TriggeredSend>

Your email/HTML would look similar to the below as well and once the email is triggered, %%attributename1%% would be replaced with the value defined above.

<html>
<body>
Here's our test triggered send email and everything below is passed through my API call.
<p>
%%attributename1%%
</p>
</body>
</html>

Some quick info below as well which gives details on "HTML Attributes" if you're looking to pass HTML code as an attribute. Hopefully this is helpful and clear. Let me know if you have any questions.

http://help.exacttarget.com/en/technical_library/web_service_guide/triggered_email_scenario_guide_for_developers/

| improve this answer | |

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.