POST public-api/employees/infosearch
This method returns all active employees whose employee number, first name, last name or full name contains the specified search text. Exact matches are ordered first, and at most 500 employees are returned (the tenant-configurable maximum page size). Requires Allow Employee permission. Note: This is a Post API to avoid limitations inherent to passing parameters on the URL.
Request Information
URI Parameters
None.
Body Parameters
EmployeeContainsSearchParameters| Name | Description | Type | Additional information |
|---|---|---|---|
| SearchPattern | string |
None. |
Request Formats
application/json
Sample:
{
"SearchPattern": "sample string 1"
}
Response Information
Resource Description
WaspResultOfListOfEmployeeModelInfo| Name | Description | Type | Additional information |
|---|---|---|---|
| Data | Collection of EmployeeModelInfo |
None. |
|
| Messages | Collection of WtResult |
None. |
|
| BatchNumber | integer |
None. |
|
| HasError | boolean |
None. |
|
| HasHttpError | boolean |
None. |
|
| HasMessage | boolean |
None. |
|
| HasSuccessWithMoreDataRemaining | boolean |
None. |
|
| TotalRecordsLongCount | integer |
None. |
Response Formats
application/json
Sample:
{
"Data": [
{
"EmployeeMiddleName": "sample string 1",
"RowNumber": 2,
"EmployeeNumber": "sample string 3",
"EmployeeFirstName": "sample string 4",
"EmployeeLastName": "sample string 5",
"EmployeeTitle": "sample string 6",
"EmployeeEmail": "sample string 7",
"DepartmentCode": "sample string 8",
"SiteName": "sample string 9",
"LocationCode": "sample string 10",
"ManagerFullName": "sample string 11",
"EmployeeReportsTo": "sample string 12",
"Addresses": [
{
"AddressLine1": "sample string 2",
"AddressLine2": "sample string 3",
"AddressLine3": "sample string 4",
"AddressLine4": "sample string 5",
"AddressCity": "sample string 6",
"AddressStateProvince": "sample string 7",
"AddressCountry": "sample string 8",
"AddressPostalCode": "sample string 9",
"AddressTypeName": "sample string 10",
"ContactPhone": "sample string 11",
"ContactEmail": "sample string 12"
},
{
"AddressLine1": "sample string 2",
"AddressLine2": "sample string 3",
"AddressLine3": "sample string 4",
"AddressLine4": "sample string 5",
"AddressCity": "sample string 6",
"AddressStateProvince": "sample string 7",
"AddressCountry": "sample string 8",
"AddressPostalCode": "sample string 9",
"AddressTypeName": "sample string 10",
"ContactPhone": "sample string 11",
"ContactEmail": "sample string 12"
}
],
"PhoneNumbers": [
{
"PhoneNumber": "sample string 1",
"PhoneExtension": "sample string 2",
"PhoneTypeName": "sample string 3"
},
{
"PhoneNumber": "sample string 1",
"PhoneExtension": "sample string 2",
"PhoneTypeName": "sample string 3"
}
],
"EmployeeNote": "sample string 13",
"EmployeeNotes": [
{
"NoteText": "sample string 1",
"NoteDate": "2026-09-15T18:32:30.4051203+00:00",
"UserLogon": "sample string 2"
},
{
"NoteText": "sample string 1",
"NoteDate": "2026-09-15T18:32:30.4051203+00:00",
"UserLogon": "sample string 2"
}
],
"CustomFields": [
{
"ImportRowNumber": 1,
"DcfLabel": "sample string 2",
"DCFDataType": 1,
"DcfTextValue": "sample string 3",
"DcfNumberValue": 1.0,
"DcfDateValue": "2026-09-15T18:32:30.4051203+00:00",
"DcfValueRecordStatus": 0
},
{
"ImportRowNumber": 1,
"DcfLabel": "sample string 2",
"DCFDataType": 1,
"DcfTextValue": "sample string 3",
"DcfNumberValue": 1.0,
"DcfDateValue": "2026-09-15T18:32:30.4051203+00:00",
"DcfValueRecordStatus": 0
}
],
"AttachmentsToAdd": [
"sample string 1",
"sample string 2"
],
"AttachmentsToDelete": [
"sample string 1",
"sample string 2"
],
"AttachmentNames": [
{
"Key": "sample string 1",
"Value": "sample string 2"
},
{
"Key": "sample string 1",
"Value": "sample string 2"
}
],
"HasAttachment": true
},
{
"EmployeeMiddleName": "sample string 1",
"RowNumber": 2,
"EmployeeNumber": "sample string 3",
"EmployeeFirstName": "sample string 4",
"EmployeeLastName": "sample string 5",
"EmployeeTitle": "sample string 6",
"EmployeeEmail": "sample string 7",
"DepartmentCode": "sample string 8",
"SiteName": "sample string 9",
"LocationCode": "sample string 10",
"ManagerFullName": "sample string 11",
"EmployeeReportsTo": "sample string 12",
"Addresses": [
{
"AddressLine1": "sample string 2",
"AddressLine2": "sample string 3",
"AddressLine3": "sample string 4",
"AddressLine4": "sample string 5",
"AddressCity": "sample string 6",
"AddressStateProvince": "sample string 7",
"AddressCountry": "sample string 8",
"AddressPostalCode": "sample string 9",
"AddressTypeName": "sample string 10",
"ContactPhone": "sample string 11",
"ContactEmail": "sample string 12"
},
{
"AddressLine1": "sample string 2",
"AddressLine2": "sample string 3",
"AddressLine3": "sample string 4",
"AddressLine4": "sample string 5",
"AddressCity": "sample string 6",
"AddressStateProvince": "sample string 7",
"AddressCountry": "sample string 8",
"AddressPostalCode": "sample string 9",
"AddressTypeName": "sample string 10",
"ContactPhone": "sample string 11",
"ContactEmail": "sample string 12"
}
],
"PhoneNumbers": [
{
"PhoneNumber": "sample string 1",
"PhoneExtension": "sample string 2",
"PhoneTypeName": "sample string 3"
},
{
"PhoneNumber": "sample string 1",
"PhoneExtension": "sample string 2",
"PhoneTypeName": "sample string 3"
}
],
"EmployeeNote": "sample string 13",
"EmployeeNotes": [
{
"NoteText": "sample string 1",
"NoteDate": "2026-09-15T18:32:30.4051203+00:00",
"UserLogon": "sample string 2"
},
{
"NoteText": "sample string 1",
"NoteDate": "2026-09-15T18:32:30.4051203+00:00",
"UserLogon": "sample string 2"
}
],
"CustomFields": [
{
"ImportRowNumber": 1,
"DcfLabel": "sample string 2",
"DCFDataType": 1,
"DcfTextValue": "sample string 3",
"DcfNumberValue": 1.0,
"DcfDateValue": "2026-09-15T18:32:30.4051203+00:00",
"DcfValueRecordStatus": 0
},
{
"ImportRowNumber": 1,
"DcfLabel": "sample string 2",
"DCFDataType": 1,
"DcfTextValue": "sample string 3",
"DcfNumberValue": 1.0,
"DcfDateValue": "2026-09-15T18:32:30.4051203+00:00",
"DcfValueRecordStatus": 0
}
],
"AttachmentsToAdd": [
"sample string 1",
"sample string 2"
],
"AttachmentsToDelete": [
"sample string 1",
"sample string 2"
],
"AttachmentNames": [
{
"Key": "sample string 1",
"Value": "sample string 2"
},
{
"Key": "sample string 1",
"Value": "sample string 2"
}
],
"HasAttachment": true
}
],
"Messages": [
{
"ResultCode": 0,
"Message": "sample string 1",
"HttpStatusCode": 200,
"FieldName": "sample string 2"
},
{
"ResultCode": 0,
"Message": "sample string 1",
"HttpStatusCode": 200,
"FieldName": "sample string 2"
}
],
"BatchNumber": 1,
"HasError": false,
"HasHttpError": false,
"HasMessage": true,
"HasSuccessWithMoreDataRemaining": false,
"TotalRecordsLongCount": 1
}