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
Solved! Go to Solution.
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.
Thanks Sanford