3

I would like to substitute some variables in my email template using ExactTarget's REST API.

For example, in my email:

%%[Substitute_var1]%%

When I call it through REST, how its possible to substitute this variable?

  • 1
    I might need a little more information - is this variable in a data extension? Are you passing this variable at send time? Not quite sure what you are asking. – Kelly J Andrews Jan 16 '14 at 12:49
  • Yes This variable is in data extension and wanted to add it in send time – Pravin Jan 20 '14 at 7:55
  • Did this end up answering your question? If so can we get it marked answered? – Kelly J Andrews Feb 22 '14 at 22:52
  • Hi @Pravin - did this question get answered? Just want to make sure we solved your issue here - would you mind checking the mark if so, or possibly update us with any new issues? – Kelly J Andrews Mar 24 '14 at 12:27
0

The REST call to send a triggered message does not provide the ability to update a data extension. It does allow you to update "send time attributes' for a subscriber, and those are passed in as the to: section of the payload:

  "To":{
     "Address":"example1@example.com",
     "SubscriberKey":"example1@example.com",
     "ContactAttributes":{
        "SubscriberAttributes":{
           "Region":"West", //passed in at send time
           "City":"Indianapolis", //passed in at send time
           "Substitute_var1":"Value" //passed in at send time
        }
     }
  }

These attributes for the subscriber will need to be created prior to sending.

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.