Rest get to retrieve all fields of a lead | Community
Skip to main content
March 30, 2016
Solved

Rest get to retrieve all fields of a lead

  • March 30, 2016
  • 1 reply
  • 4407 views

Hi,

I want to retrieve value of all the fields available for a lead in marketo. Is there any generic api to get this or do i have to hard code all the field names in the url?when i am making a rest call with all the field names in url it is throwing a exception saying Url too long. Any pointers?

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

This is how i tried.But unsuccessful.Can you tell what am i doing wrong?


Use Content-Type as in my example. "Raw" is not appropriate here.

1 reply

Grégoire_Miche2
Level 10
March 30, 2016

Hi Manisha,

You can use the "describe" api that will give you the list of fields. See Describe » Marketo Developers

-Greg

March 30, 2016

I do not want a list of fields i want to pull data of all the fields for leads.e.g:for each lead i want to get all data that is there in marketo.

Grégoire_Miche2
Level 10
March 30, 2016

Use the the Get Lead by Id Get Lead by Id » Marketo Developers  or any other Get lead call.

But you will have to provide the list of fields you want to retrieve, so you will need to retrieve the field names first, hence my first answer.

-Greg