Customers
User information
 Loading ...
Show article in Knowledge Base

 Using a queryObject Export knowledge base Export     SubscribeSubscribe      Show article info

In the Web Service API it exists methods that starts with "find", for example: findSystemUsers.

 

The parameter to these methods is a "queryObject". The queryObject is an object of the respective type that you query, for findSystemUsers the queryObject is an object of type SystemUser.

 

Below you can find a sample on how to use the method findSystemUsers to find all users from the company with id equals to 23:

 

(NOTE! In the VisionProject GUI Companies are called Companies but in the code they are Customer objects.)

 

SystemUser queryObject = new SystemUser();
queryObject.setCustomerId(23);
SystemUser[] systemUsers = VisionProjectWebService.findSystemUsers(queryObject);
if (systemUsers != null && systemUsers.length > 0) {
   // Do something
}

User comments
 Loading ...