Skip to main content
June 4, 2015
Question

Fetch all custom fields in Marketo using ReST API

Hi masters,

1. How to fetch all custom fields in Marketo using ReST API

using /rest/v1/lists.json

it will return only 5 fields:

          "id":60,

         "name":"List Name",

         "description" : "desc",

         "programName" : "ProgramName",

         "createdAt": "2014-03-26T17:29:14+0000",

         "updatedAt": "2014-03-26T18:04:10+0000"

2. I want to update custom field how would I know the exact name?

where can I get the correct myCustomField name?

using /rest/v1/leads.json

you supply the parameter like:

{ 

   "action":"createOrUpdate",

   "input":[ 

      { 

         "email":"example@example.com",

         "myCustomField":"examplestring"

      }

   ]

}

Thanks

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

2 replies

June 4, 2015

Neil Bautista​ I moved this to Products and Support​ where you will probably get a response sooner. Thanks!

Translate
Steven_Vanderb3
Adobe Employee
Adobe Employee
June 5, 2015

Hi Neil,

The endpoint you're using is to retrieve multiple lists, not to retrieve a list of custom fields.  Get Multiple Lists » Marketo Developers   If you need to get the API names of your custom fields, you can do so via the Field Management section of Marketo Admin Export a List of All Marketo API Field Names - Marketo Docs - Product Docs

Translate