Fields Updated by the Employee Web Services
This section describes the fields that can be updated by the Employee Web Services.
Fields that are only available using Employee Web Service 2 are noted in the table below.
Field | Description | Database Type | Maximum Field Length |
---|---|---|---|
Address1 |
Employee's mailing address. An imported mailing address that already exists in the employee record is set as the primary address. An imported mailing address that does not exist in the employee record is added and set as the primary address. Existing mailing addresses in the employee record are updated to alternate mailing addresses. You must provide a value for Address1 in order to enter information into the Address2, City, Country, State, or Zip fields. |
String |
60 |
Address2 |
Additional information about the employee's mailing address. This field can be blank if you do not enter a value for Address 1. |
String |
60 |
BirthDate |
Employee's date of birth |
Date |
N/A |
City |
City in the employee's mailing address This field can be blank if you do not enter a value for Address 1. |
String |
60 |
Country |
Country in the employee's mailing address This field can be blank if you do not enter a value for Address 1. For a complete list of country codes, see the Country Codes topic. |
String |
50 |
EmailAddress |
Employee's email address (for example, username@company.com) An imported email address that already exists in the employee record is set as the primary email address. An imported email address that does not exist in the employee record is added and set as the primary address. Existing email addresses in the employee record are updated to alternate email addresses. Deleting email addresses is not available through the Employee Web services. |
String |
255 |
EmployeeCode |
An external unique ID specified by customers, used to identify each employee. The Employee Web service uses this code to determine whether an employee record is created or updated. |
String |
255 |
Extension |
Employee's phone extension |
String |
15 |
FirstName |
Employee's first name |
String |
60 |
ForcePasswordChange |
Indicates whether employees are required to change their passwords the next time they log in to PureSafety (true = requires a password change, false or null = allows employees to log into PureSafety with their previous passwords). This field must have a true, false, or null value. False is the default value. |
Boolean |
N/A |
Gender Available only when using Employee Web Service 2 |
Employee's gender. Available only when using Employee Web Service 2 |
String |
N/A |
GroupCode |
Employee's group code Employees inherit assignments currently assigned to the group, provided that the assignments are configured to automatically be assigned to new entrants, when they are added to the group. Note: The employee is associated with the new groups specified in the
Web service if you update an employee's groups through the Web
Service. He is not removed from any existing groups.
Recommendation: Log in to PureSafety and remove an employee from any groups to which he currently belongs manually. The following error message displays if the Web service sends invalid data in this field. "The requested Group is invalid or missing. - Group:<GroupCode>, Employee: <EmployeeName>" |
String |
255 |
HireDate |
Employee's hire date |
Date |
N/A |
IsActive |
Indicates whether the employee record is active by default or not (true = Yes (Active), false or null = No (Not Active)). The employee cannot log in to PureSafety if he is inactive. This field must have a true, false, or null value. The IsActive becomes a required field if the LoginName field is included in the call. |
Boolean |
N/A |
IsPrimary |
Specifies whether the mailing address, email address, or phone number provided is the primary one (true = Is Primary, false or null = No). This field must have a true, false, or null value. |
Boolean |
N/A |
JobTitle |
Employee's job title |
String |
255 |
Language Available only when using Employee Web Service 2 |
Employee's culture. This field accepts English, Spanish, and French. |
String |
N/A |
LastName |
Employee's last name |
String |
60 |
LoginName |
User name employee uses to log in to PureSafety, for example, first.lastname |
String |
60 |
LoginPassword |
Password employee uses to log in to PureSafety The LoginPassword becomes a required field if the LoginName field is include in the call. |
String |
50 |
Manager Employee Code Available only when using Employee Web Service 2 |
The employee's manager's employee code. |
String |
255 |
MiddleName |
Employee's middle name |
String |
60 |
OrganizationUnitCode |
Employee's organization unit Employees inherit assignments currently assigned to the organization unit, provided that the assignments are configured to automatically be assigned to new entrants, when they are added to an organization unit. Note: The employee is removed from any existing organization units, and
associated only with those specified in the Web service.
Recommendation: If you want to assign the employee to a new organization unit and keep him in those to which he currently belongs, enter the organization unit codes of all the units to which he belongs in addition to the code for the new organization unit. If the Web service sends invalid data in this field, the following error message appears: "The requested Organization Unit is invalid or missing. - OrganizationCode:<OrgUnitCode>, Employee: <EmployeeName>" |
String |
255 |
PhoneCountry |
Country used for the employee's phone number This field can be blank if you do not enter a value for PhoneNumber. For a complete list of country codes, see the Country Codes topic. |
String |
50 |
Phone Extension Available only when using Employee Web Service 2 |
Employee's phone number extension. |
String |
15 |
PhoneNumber |
Employee's phone number An imported phone number that already exists in the employee record is set as the primary address. An imported phone number that does not exist in the employee record is added and set as the primary address. Existing mailing addresses in the employee record are updated to alternate mailing addresses. You cannot enter information into the PhoneCountry field if you do not enter a value in the PhoneNumber field. |
String |
15 |
Prefix Available only when using Employee Web Service 2 |
Employee's prefix. This field accepts Dr., Miss, Mr., Mrs., and Ms. |
String |
N/A |
ReleaseDate |
Employee's release date |
Date |
N/A |
State |
State in the employee's mailing address (for example, Tennessee) This field can be blank if you do not enter a value for Address 1. |
String |
100 |
Suffix Available only when using Employee Web Service 2 |
Employee's suffix. This field accepts II, III, IV, Jr. and Sr. |
String |
N/A |
Time Zone Available only when using Employee Web Service 2 |
Employee's time zone. This field accepts a standard time zone code. For example, Central Standard Time. |
String |
N/A |
Work Location Available only when using Employee Web Service 2 |
Employee's work location. |
String |
100 |
Zip |
ZIP code in the employee's mailing address This field can be blank if you do not enter a value for Address 1. |
String |
20 |
Zip4 Available only when using Employee Web Service 2 |
Extended Zip Code in the employee's mailing address. |
String |
5 |