5

From the Platform, i can easily access the Thumbnail, however from within the SOAP API, this is very difficult to do. I've tried some suggested comments I've found with User Token, passing it both in POST and GET request; Failed, even tried submitting a LOGIN post via the LoginURL returned with it, and then quickly trying to access it.. also failed, thought maybe some cookies might exist in the Login Response and I could place them into the thumbnail, but they're all cleared for that particular response.. This is silly, can someone please find a way to make this work? I am about to write some logic that will just simply Login to the platform in code much like I would in person, to obtain the thumbnails that way, I was trying to avoid it because its stupid.. but it seems you guys are leaving me little choice.

The URL found within Exact Target portal, is as follows:

https://members.s6.exacttarget.com/Content/Email/EmailThumbnail.aspx?eid=[EMAIL_ID]&w=[WIDTH]&h=[HEIGHT]&showHF=true

I am trying to find a way to get this same image from SOAP API, so I can cache and store it locally within our "Artwork Manager";

our software is fully automated against ET, and ideally people will be able to create/edit the emails from our application as well.. currently we're able to retrieve the ID's and Names of existing Emails, and use those to send new Emails.. it is simply a bother to be completely missing the ability to "Preview" the email ID you're about to select when setting up a marketing campaign.

  • Can you share the URL that you expect to pull the thumbnail from? Worst case it should be possible to screen scrape it out. – Daniel Ballinger Feb 26 '14 at 0:38
  • Also, if this is an ExactTarget question, please tag it as such. Otherwise people will get confused and think you are asking about core Salesforce. – Daniel Ballinger Feb 26 '14 at 0:39
  • 1
    There is a new route going to QA in our 2014-03 release. Doesn't help you immediately, but we are moving the right direction here. – Kelly J Andrews Mar 7 '14 at 15:34
  • 1
    Hello Kelly, can you confirm if this new route made it in a recent release? I can't see such functionality in the current release. We need to retrieve image thumbnails of emails from the API too. – Eliot Harper Nov 26 '14 at 19:38
  • I know you can retrieve the thumbnail from the URL if you are logged into ET. I am wondering if you can use SSO via SAML to do the authentication and then the URLs will work in the browser session? Haven't tried this yet but might be an option: help.exacttarget.com/en-US/documentation/exacttarget/admin/… – Jon Sakas Mar 9 '15 at 21:28
1

Not sure there's an easy way. But, you can get the HTMLBody property of the Email, put that on a div in a webpage and then use a bit of code to generate a thumbnail that you can save out of that page. Libraries like: http://labs.awesomium.com/capturing-web-pages-with-c-net/ or http://www.websitesscreenshot.com/ might help out.

It will require a bit of custom work but could be done that way...

  • Yeah... the obvious and less desirable solution; Just seems like ET should've implemented this already with their SOAP api.. If it was a feature, and existed already, adding it to the API would've been simple, and I surely would've knowing that someone out there would use it. Then again, I am a perfectionist. – Kyle Gibbar Mar 2 '14 at 18:03
1

Many moons later, this can be done with the REST API, using the following endpoint:

GET /asset/v1/assets/{id}/thumbnail

It will return a base64 encoded string of the thumbnail image. Thumbnail size is 200x200.

Unfortunately the thumbnail endpoint is undocumented, at this point in time.

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.