SearchRecords and SearchRecordRefs

These operations allow you to search any type of Record in the system.

These two operations use the same request.

The difference is as follows: SearchRecords returns a list of Record while SearchRecordRefs returns a list of RecordRef corresponding to the search. 

Property

Type

Value

Credentials

Credentials

Authentication information

RecordType

RecordType

Information concerning the task to be created

Query

String

Search request to do. See examples below.

Parameters

ArrayOfProperty

Optional. List of parameters to use during the request.

Limit

SearchLimit

Optional. Allows you to limit the number of results.

Offset (int): start at this result

Count (int): result limit

Location

SearchLocation

Optional. Allows you to limit the search to a radius from the location parameter entered. Used only for the CLIENT and NODE RecordTypes.

Position: latitude / longitude of the center of the search

RadiusInMetres (int): radius of the search

SearchRecordsRequest


Examples:

Java

// Human Resource Search by Property

SearchRecordsRequest request = new SearchRecordsRequest();

request.setCredentials(credentials);

request.setRecordType(RecordType.HUMAN_RESOURCE);

request.setQuery("PROP.hresourceidentification.employee_code = :hrCode");

ArrayOfProperty aop = new ArrayOfProperty();

Property p = new Property();

p.setName("hrCode");

p.setValue("1234");

aop.getProperty().add(p);

request.setParameters(aop);

progressionWebService.searchRecords(request);