AnsweredAssumed Answered

Fetch all custom fields in Marketo using ReST API

Question asked by 2e48dbc16e700e0d6b9860c1c9233d75cafd635e on Jun 3, 2015
Latest reply on Jun 4, 2015 by Takehiro Monday

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

Outcomes