How do I get the list of LeadLists using the Marketo API? | Community
Skip to main content
February 15, 2013
Solved

How do I get the list of LeadLists using the Marketo API?

  • February 15, 2013
  • 2 replies
  • 1039 views
Hi there, 

I am trying to get a list of leadlists that are in my Marketo instance. I tried using ParamsDescribeMObject with the objectName set to "LeadList" (I also tried "LeadRecordList")

            Marketo_WS_2_0.ParamsDescribeMObject dmob = new Marketo_WS_2_0.ParamsDescribeMObject();
            dmob.objectName = name;
            Marketo_WS_2_0.SuccessDescribeMObject resp = client.describeMObject(ws_header, dmob);

however, when I do this, I get an error message saying "Bad object name". 


Any ideas on how to do this? 

Please help. 
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
MObjects can be LeadRecord, Activity, Opportunity, and OpportunityPersonRole.

Unless I am misunderstanmding your goal there is no method to retrieve lists in use.

2 replies

Accepted solution
February 18, 2013
MObjects can be LeadRecord, Activity, Opportunity, and OpportunityPersonRole.

Unless I am misunderstanmding your goal there is no method to retrieve lists in use.

February 20, 2013
Yeah, you're right. But it's possible to get the lead list and the leads in the list if we know the leadlist's name. I guess that's fine for now.

Thank you.