• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Webservice client for MS CRM in java

 
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi ,
I want to connect to MS CRM with java werservice client . i am able to connet to and store and retrrive the data . But i want to retrive the data based on query condition , update the data based these 2 things are not workin for me .
if any one has worked on this can you please provide the sample code .
i am thinking the problem is while settting the query condition values .

this is my code . please help me on this .

//***query conditon **/
ConditionExpression conditionExpression = ConditionExpression.Factory.newInstance();
conditionExpression.setAttributeName("accountid");
conditionExpression.setOperator(ConditionOperator.EQUAL);

// void setValueArray(int i, org.apache.xmlbeans.XmlObject value);

ArrayOfAnyType arrtype = ArrayOfAnyType.Factory.newInstance();
String s = "<accountid>123</accountid>";
StringReader strr = new StringReader(s);
XmlObject obj = XmlObject.Factory.parse(strr);
arrtype.set(obj);
conditionExpression.setValues(arrtype);
//ArrayOfAnyType arr = new ArrayOfAnyType(new String[]{createdAccountid});
ArrayOfConditionExpression arr = ArrayOfConditionExpression.Factory.newInstance();
arr.setConditionArray(1,conditionExpression);
FilterExpression filter = FilterExpression.Factory.newInstance();
 
Are we home yet? Wait, did we forget the tiny ad?
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic