• shurik
  • NEWBIE
  • 0 Points
  • Member since 2006

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 3
    Questions
  • 8
    Replies
Hello,
could we get Contacts Views name and definition through API

example All Contacts, My Contacts, etc
Could I retrieve Country Phone code ?
We could not get additional user info (phone, mobilePhone) by using 'retrieve' function for object 'User' by UserID. We could emulate a request to your server by hand coding some XML and the server seems to return a good response. This is the code:

// retrieve
SObject[] sObjects = binding.retrieve("Phone, MobilePhone", "User", new String[] {userInfo.getUserId()} );
if (sObjects != null) {
   User sUser = (User)sObjects[0];
   // sUser.getPhone();
   // sUser.getMobilePhone();
}

The request returns without exceptions, but returned value in sObjects is wrong .
sObjects should contain 1 User object returned but it contains 4 or 5 wrong null objects 
We could not get additional user info (phone, mobilePhone) by using 'retrieve' function for object 'User' by UserID. We could emulate a request to your server by hand coding some XML and the server seems to return a good response. This is the code:

// retrieve
SObject[] sObjects = binding.retrieve("Phone, MobilePhone", "User", new String[] {userInfo.getUserId()} );
if (sObjects != null) {
   User sUser = (User)sObjects[0];
   // sUser.getPhone();
   // sUser.getMobilePhone();
}

The request returns without exceptions, but returned value in sObjects is wrong .
sObjects should contain 1 User object returned but it contains 4 or 5 wrong null objects