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.22k
    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.setFilterCriteria("EMPLOYEE_ID =? ");
    ArrayList params = new ArrayList(1);
    params.add(new Parameter(employeeId));
    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

Sign up using

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: