SOLVED

Draft emails

Go to solution
Rohit_Ranjan
Level 2

Draft emails

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

1 ACCEPTED SOLUTION

Accepted Solutions
SanfordWhiteman
Level 10 - Community Moderator

Re: Draft emails

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.

View solution in original post

2 REPLIES 2
SanfordWhiteman
Level 10 - Community Moderator

Re: Draft emails

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
Level 2

Re: Draft emails

Thanks Sanford