Re: Fetch all custom fields in Marketo using ReST API

Anonymous
Not applicable

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

2 REPLIES 2
Steven_Vanderb3
Marketo Employee

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

Anonymous
Not applicable

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