• ryuman
  • NEWBIE
  • 0 Points
  • Member since 2011

  • Chatter
    Feed
  • 1
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 2
    Questions
  • 2
    Replies
Use library
  • Force-wsc-32.1.1.jar
  • Force-partner-api-32.0.0.jar

//JAVA code

config.setUsername("user");
config.setPassword("pass");
config.setAuthEndpoint("https://login.salesforce.com/services/Soap/u/32.0");
connection = new PartnerConnection(config);


ExecuteListViewRequest request = new ExecuteListViewRequest();
request.setSobjectType("Contact");
request.setDeveloperNameOrId("00BA0000004lEpW");
request.setLimit(50000);
connection.executeListView(request);//EROOR

com.sforce.ws.ConnectionException: Unexpected element. Parser was expecting element 'urn:partner.soap.sforce.com:sortDirection' but found 'urn:partner.soap.sforce.com:sortable'
    at com.sforce.ws.bind.TypeMapper.verifyTag(TypeMapper.java:409)
    at com.sforce.ws.bind.TypeMapper.verifyElement(TypeMapper.java:438)
    at com.sforce.soap.partner.ListViewColumn.loadFields(ListViewColumn.java:304)
    at com.sforce.soap.partner.ListViewColumn.load(ListViewColumn.java:273)
    at com.sforce.ws.bind.TypeMapper.readSingle(TypeMapper.java:651)
    at com.sforce.ws.bind.TypeMapper.readArray(TypeMapper.java:551)
    at com.sforce.ws.bind.TypeMapper.readObject(TypeMapper.java:529)
    at com.sforce.soap.partner.ExecuteListViewResult.loadFields(ExecuteListViewResult.java:207)
    at com.sforce.soap.partner.ExecuteListViewResult.load(ExecuteListViewResult.java:199)
    at com.sforce.ws.bind.TypeMapper.readSingle(TypeMapper.java:651)
    at com.sforce.ws.bind.TypeMapper.readObject(TypeMapper.java:527)
    at com.sforce.soap.partner.ExecuteListViewResponse_element.loadFields(ExecuteListViewResponse_element.java:64)
    at com.sforce.soap.partner.ExecuteListViewResponse_element.load(ExecuteListViewResponse_element.java:56)
    at com.sforce.ws.bind.TypeMapper.readSingle(TypeMapper.java:651)
    at com.sforce.ws.bind.TypeMapper.readObject(TypeMapper.java:527)
    at com.sforce.ws.transport.SoapConnection.bind(SoapConnection.java:174)
    at com.sforce.ws.transport.SoapConnection.receive(SoapConnection.java:148)
    at com.sforce.ws.transport.SoapConnection.send(SoapConnection.java:99)
    at com.sforce.soap.partner.PartnerConnection.executeListView(PartnerConnection.java:821)



You know the cause?

If the REST API works.
 /services/data/v32.0/sobjects/Account/listviews/00B80000005yp67/results

Thanks.
  • January 06, 2015
  • Like
  • 0

picklist(選択リスト)の更新について教えてください。

 

WebServicesAPIのpicklistEntryにはLabel,Value,ValidFor,Active,Deflutの5つが取得できるのですが、colorは取得できません。 MetadataAPIから項目を更新時にcororを設定しないと既存に設定してあるcolorが更新されてまいます。 既存のcolorの取得法やupdateで変更しないような方法はございますでしょうか。

 

よろしくお願いします。

  • September 05, 2011
  • Like
  • 0

picklist(選択リスト)の更新について教えてください。

 

WebServicesAPIのpicklistEntryにはLabel,Value,ValidFor,Active,Deflutの5つが取得できるのですが、colorは取得できません。 MetadataAPIから項目を更新時にcororを設定しないと既存に設定してあるcolorが更新されてまいます。 既存のcolorの取得法やupdateで変更しないような方法はございますでしょうか。

 

よろしくお願いします。

  • September 05, 2011
  • Like
  • 0

Hi I am trying to add new picklist values to an existing custom object's picklist field using MetadataAPI. Articles which i followed are below..


http://www.salesforce.com/us/developer/docs/api_meta/index.htm

http://www.salesforce.com/us/developer/docs/api_meta/Content/meta_update.htm


If any body has implemented this pl's help me it's very importent.  I am getting errors and unable to find any good examples to do this..Thank's in advance............................

 

 

You can find my complete code in the following post

 

https://sites.secure.force.com/success/questionDetail?qId=a1X30000000ITO5EAO