Export Emails via API | Community
Skip to main content
Carolyn_Price
Level 2
November 3, 2017
Question

Export Emails via API

  • November 3, 2017
  • 2 replies
  • 3777 views

Is there any way to bulk export email details (e.g. sender name, subject line, etc.)?

We're conducting an email audit, and we need to report on some key metrics for each email (e.g. sender name, subject line, performance, etc.).

The REST API seems like the best tool for the job, and I've followed the steps on reporting on emails based on folder to collect some of that data.

http://developers.marketo.com/rest-api/assets/emails/#browse

However, I'm stuck on the fact that:

  • I can't seem to page through the results (they return a maximum of 200), and
  • Filtering via Folder only returns the immediate child results, not any child emails that are 1+ steps removed (emails that are nested within a program or other folder aren't included).

Are there any other tricks I'm missing?

Carolyn

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

2 replies

Josh_Hill13
Level 10
November 6, 2017

@Sanford Whiteman​

part of this may be the 500mb Bulk API limit? Are you using the bulk exporter or just REST API?

Kenny_Elkington
Adobe Employee
Adobe Employee
November 7, 2017

>I can't seem to page through the results (they return a maximum of 200)

Paging is done through the 'offset' parameter

>Filtering via Folder only returns the immediate child results, not any child emails that are 1+ steps removed (emails that are nested within a program or other folder aren't included).

Correct, the folder filter only looks at the immediate parent of an email asset.  Most use cases require retrieving the entirety of the set of emails though, and cross-referencing them.  If you need to search through a folder tree, then Get Folder Contents is better suited to your need​s: http://developers.marketo.com/rest-api/endpoint-reference/asset-endpoint-reference/#!/Folders/getFolderContentUsingGET