This discussion is archived
2 Replies Latest reply: Jun 18, 2009 1:52 PM by PaulCo RSS

Picklist web Service Custom Object

PaulCo Newbie
Currently Being Moderated
I am using the Picklist web Services and am trying to use them against a custom Object. They work fine for standard objects such as account but are failing against my custom object. I have tried calling it "Custom Object 01", "CustomObject1","connection" etc etc. I get the feeling that these web services do not work against custom objects... Does anybody have any experience to the contrary????

createSession();
picklist.Picklist pick = new iLink.picklist.Picklist();
pick.Url = session.GetURL();
picklist.PicklistWS_GetPicklistValues_Input input = new iLink.picklist.PicklistWS_GetPicklistValues_Input();
picklist.PicklistWS_GetPicklistValues_Output output = new iLink.picklist.PicklistWS_GetPicklistValues_Output();
input.RecordType = "CustomObject1";
input.FieldName = "IndexedPick0";
output = pick.GetPicklistValues(input);
session.Destroy(session.sessionId);

Thanks in advance for your comments...

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points