What is expected of the 'folder' parameter for the 'Get Emails' endpoint? | Community
Skip to main content
Stephen_Baker2
New Participant
August 27, 2018
Solved

What is expected of the 'folder' parameter for the 'Get Emails' endpoint?

  • August 27, 2018
  • 1 reply
  • 2938 views

Two related questions:

1) What is required for the ambiguous 'folder' parameter noted here: http://developers.marketo.com/rest-api/endpoint-reference/asset-endpoint-reference/#!/Emails/getEmailUsingGET

JSON formatted ID (from the UI) and folder ID (from the API using http://developers.marketo.com/rest-api/endpoint-reference/asset-endpoint-reference/#!/Folders/getFolderByNameUsingGET​) are not working.

The request returns 711 and 720 errors (not found, invalid folder types) for programs, folders and parent folders that have approved emails in them using the IDs from getFolderByName.

2) What does Marketo want for application/x-www-url-formencoded when using JSON in the query e.g. below?

&folder={"id":1234,"type":"Folder"}

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

Emails are only directly in programs.

URL-encoded JSON is, well, URL-encoded JSON:

folder=%7B%22type%22%3A%22program%22%2C%22id%22%3A1234%7D

1 reply

SanfordWhiteman
SanfordWhitemanAccepted solution
New Participant
August 27, 2018

Emails are only directly in programs.

URL-encoded JSON is, well, URL-encoded JSON:

folder=%7B%22type%22%3A%22program%22%2C%22id%22%3A1234%7D

Stephen_Baker2
New Participant
August 28, 2018

Programs returning nothing for the search criteria as well.

&status=approved&maxReturn=200&folder=%7B%22id%22%3A1236%2C%22type%22%3A%22Program%22%7D

SanfordWhiteman
New Participant
August 28, 2018

The example I gave is correct when there are matching results... can't really speak to what's in your instance.