You need to sign in to do that
Don't have an account?
Casey Hardesty 10
Best way to add a subscriber to Exact Target List from Trigger
So, I'm tasked with a project and need some general guidance. Basically, here is what I am trying to accomplish...
1. Our Org has a custom object that when created, I would like to fire off a trigger
2. The Trigger (or class that the trigger calls) would then find the subscriber (because they should already exist in Exact Target) and add that subscriber to an existing List in Exact Target.
My question is... Can this be done with Apex code? I've read the documentation around adding subscribers to a list using the API but I haven't found any examples using APEX. I guess the other option would be to Invoke a Callout?
Thoughts? Thanks in advance for your time and effort.
Casey
1. Our Org has a custom object that when created, I would like to fire off a trigger
2. The Trigger (or class that the trigger calls) would then find the subscriber (because they should already exist in Exact Target) and add that subscriber to an existing List in Exact Target.
My question is... Can this be done with Apex code? I've read the documentation around adding subscribers to a list using the API but I haven't found any examples using APEX. I guess the other option would be to Invoke a Callout?
Thoughts? Thanks in advance for your time and effort.
Casey
This can def. be done. You're talking about making HTTP Callouts to the exact target REST api from within Apex. I've done this a couple of times, and the example code I've posted below is for sending a push notification, but you can see how authentication is done, and how making api requests is done.
All Answers
This can def. be done. You're talking about making HTTP Callouts to the exact target REST api from within Apex. I've done this a couple of times, and the example code I've posted below is for sending a push notification, but you can see how authentication is done, and how making api requests is done.