Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • SIF API to Search a data in Base Object

    • 0
    • 0
    • 0
    • 0
    • 1
    • 0
    • 0
    • 0
    • 1.28k
    Comment on it

    If you have a requirement to search data in Base Object, you can use SearchQueryRequest SIF API for same. Following example illustrate fetching first name of employee using employee id.

    SearchQueryRequest request = new SearchQueryRequest();
    request.setRecordsToReturn(1);
    request.setSiperianObjectUid("BASE_OBJECT.MY_EMPLOYEE_INFO");
    request.setFilterCriteria("EMPLOYEE_ID =? ");
    ArrayList params = new ArrayList(1);
    params.add(new Parameter(employeeId));
    request.setFilterParameters(params); 
    SearchQueryResponse response = (SearchQueryResponse) sipClient.process(request);
    if(response == null) return null;
    List records=(List) response.getRecords();
    String firstName=null;
    if(records.size()>0) result= (String)records.get(0).getField("FIRST_NAME").getValue();
    

 1 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: