SOLVED

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

Go to solution
Anonymous
Not applicable
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. 
Tags (1)
1 ACCEPTED SOLUTION
Anonymous
Not applicable
MObjects can be LeadRecord, Activity, Opportunity, and OpportunityPersonRole.

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

View solution in original post

2 REPLIES 2
Anonymous
Not applicable
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. 
Anonymous
Not applicable
MObjects can be LeadRecord, Activity, Opportunity, and OpportunityPersonRole.

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