How do I get a list of Lead Fieldnames using the API?
I am stuck trying to get a list of lead fieldnames (Firstname, lastname, salutation, company etc.) using the API and the discussions about this topic only talked about geting a list of field names using the UI.
Any ideas on how to do this?
I have tried using the ParamsGetMObjects but using the paramsGetMObjects type = "Field" or "Fields" gave errors saying that "MObject type is unknown".
Here is the piece of code I am working with:
Marketo_WS_2_0.ParamsGetMObjects pgo = new Marketo_WS_2_0.ParamsGetMObjects();
Marketo_WS_2_0.MObjCriteria moc = new Marketo_WS_2_0.MObjCriteria();
moc.attrName = "*";
pgo.mObjCriteriaList = new Marketo_WS_2_0.MObjCriteria;