Draft emails | Community
Skip to main content
Rohit_Ranjan
New Participant
February 16, 2021
Solved

Draft emails

  • February 16, 2021
  • 1 reply
  • 2638 views

Hi, 

We have thousands of emails in the draft state. We want to discard all the draft emails through API. Is there any way we can get all the draft emails in Marketo?

 

I tried getting all the emails under one of the root folder (Marketing Activities:3) but got the below error.

 

/rest/asset/v1/emails.json?status=draft&maxReturn=3&folder={"id":3,"type":"Folder"}

 

"errors": [ { "code": "711", "message": "Invalid folder type for email" } ]
 

Thanks,

Rohit

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

An email asset can't be directly under a folder in Marketing Activities. It must be inside a program, so you need to crawl the programs and then seek their contents.

1 reply

SanfordWhiteman
SanfordWhitemanAccepted solution
New Participant
February 16, 2021

An email asset can't be directly under a folder in Marketing Activities. It must be inside a program, so you need to crawl the programs and then seek their contents.

Rohit_Ranjan
New Participant
February 16, 2021

Thanks Sanford