Document toolboxDocument toolbox

Data Types

The ServiceOptimizer SOAP APIs utilize a number of defined data types, to ensure consistency across the APIs.

These are either pre-defined primitive data types of a specified length, or are enumerated types with a defined set of valid values.

Some of the primitive data types, like spDateTime, require data in a specific format - see Data Type Formats for definitions of these formats.

Common Specified Length Data Types

Data Type NamePrimitive TypeSize
ActCategoryDescstring30
ActNounsigned intN/A
ActNotesstring4003
ActTypeNumunsigned intN/A
ActTypeStrstring30
BookLocIDstring4
BookLocNamestring50
BreakNamestring20
cancelReasonIdunsigned intN/A
cancelDescriptionstring500
CapacityCategoryNamestring20
ColourIDstring30
ContactNamestring50
CostIDstring20
CountryCodestring2
CustAddressstring50
CustIDstring30
CustNamestring50
CustomKeywordstring12
CustomValuestring20
DayIndstring3
Daysstring7
DepCostIDstring10
Descstring500
Desc2string3500
DescriptionStrstring256
DRUIDstring8
EmpAddressstring50
EmpIDstring25
EmpJobTitlestring24
EmpNamestring50
EmpSurnamestring50
FRUIDstring8
GeofenceNamestring25
GeofenceTypestring5
GPSAddressLinestring50
GPSPostcodestring15
GroupIDstring30
HandheldAddressstring10
Data Type NamePrimitive TypeSize
IRUIDstring8
JobCategoryDescstring30
JobIDstring50
JobTypeDescstring40
JobTypeIDstring30
LocAddstring50
OfferTextstring47
OfferTokenstring60
PagerNumstring20
PhoneNumstring40
Postcodestring30
Printerstring10
PromSetIDstring2
PromTypeIDstring2
PubHolSetIDstring30
RegionIDstring26
RestrictionRefstring30
RUDescriptionstring40
RUIDstring8
ServHoursPattIDstring10
ServHoursPattNamestring30
ShiftPatternIDstring30
SiteIDstring20
SkillDescstring36
SkillIDstring30
SpareIDstring30
SpareLocstring26
spCostIdstringN/A
spDatestring8
spDateTimestring16
SpecialPeriodIDunsigned intN/A
TeamIDstring40
Timestring4
TimeBandIDstring4
timestampunsigned longN/A
TravelProfileIDstring10
TZIDstring32
Unitstring8
WorkItemIDstring50
Data Type NamePrimitive TypeSize
sp2:BandDescNamestring5
sp2:spTimestring15

Enumerated Data Types

ActLocType

Permitted Value(s)Description
NoneThere is no location defined.
SuppliedSupplied in StartPostCode or EndPostCode.
HomeEmployee’s home region.
DepotEmployee’s depot region.
WorkEmployee’s work region.
StartEmployee’s shift start region.
EndEmployee’s shift end region.

ActTravelModeType

Permitted Value(s)Description
None

The Activity will not automatically include any travel into the duration.

ETSThe Activity will include travel such that the start time remains the same.
ETAThe Activity will include travel such that the arrival time remains the same.

ActTZType

Permitted Value(s)Description
HomeThe Activity times are defined assuming the Employee’s home TZ.
FRUThe Activity times are defined assuming the TZ of the FRU to which the employee is currently posted.
LocationThe Activity times are defined assuming the TZ of the given location.
DefaultThe Activity times are defined assuming default TZ for the system.

AssignmentType

Permitted Value(s)Description
EQGrant permission if the role's formal parameter matches.
NEQGrant permission if the role's formal parameter does not match.

AuditStatus

Permitted Value(s)Description
OFFAuditing of job history via the relevant mechanism is not enabled.
ONAuditing of job history via the relevant mechanism is enabled.
PARTIALThere is a mixture of enabled and not enabled job history auditing in place.

AuthType

Permitted Value(s)Description
INTERNAL

Deprecated in ServiceScheduling 13.0.6 (The use of INTERNAL with Create User SOAP API or Update User SOAP API is still supported, but users will be created with the SECURED type.)

Users with an AuthType value of INTERNAL will fail authentication. Run spsecure to update to SECURED.

SECUREDThe user's login will be authenticated against a secure password hash stored in ServiceScheduling.
LDAPThe user's login will be authenticated using the configured external LDAP server.

Boolean

Permitted Value(s)Description
false or 0FALSE
true or 1TRUE

BreakType

Permitted Value(s)Description
DefaultThe Break is from the defined shift Break specification.
OverriddenThe Break has been overridden by a user.
FixedThe Break has been taken so times are actual break times.

DayOfTheWeek

Permitted Value(s)Description
MonMonday
TueTuesday
WedWednesday
ThuThursday
FriFriday
SatSaturday
SunSunday

DepEmpType

Permitted Value(s)Description
NoneThere is no Employee dependency required.
SameDependent jobs must be done by the same Employee.
DiffDependent jobs must be done by a different Employee.

DepTimeType

Permitted Value(s)Description
ETADependency should be based on Estimated Time of Arrival.
ETFDependency should be based on Estimated Time of Finish.

DepUnits

Permitted Value(s)Description
MinsUnits for the time dependency specified are minutes.
HoursUnits for the time dependency specified are hours.
DaysUnits for the time dependency specified are days.

DispEarmarkTypes

Permitted Value(s)Description
EarmarkA job has been earmarked.
UnEarmarkA job has been unearmarked.
ReEarmarkA job has been re-earmarked.
SA-EarmarkA standard activity has been earmarked.
SA-UnEarmarkA standard activity has been unearmarked.
SA-ReEarmarkA standard activity has been re-earmarked.
NoneA job has changed jeopardy state. Only supported as a value when the Dispatch configuration is set for this feature.

DispMode

Permitted Value(s)Description
RealTimeJobs will be dispatched in real time as they come within inform lead time.
BatchAll Jobs due before specified date/time will be dispatched.
DispRangeType
Permitted Value(s)Description
JobsDispatch date/time range refers to Jobs within the range.
ShiftsDispatch date/time range refers to shifts falling within the range.

DisStatus

Permitted Value(s)Description
TentativeTentative, assigned but not confirmed.
FixedFixed.
EarmarkedDispatched.
ContactedAccepted by the Employee.
Cancelled
Displays a Cancelled status of cancelled jobs.
TravellingEnRoute or travelling to Job.
LoggedOnLoggedOn or Onsite at Job.
LoggedOffLoggedOff or left site of Job.
Cleared

EmpLocType

Permitted Value(s)Description
HomeThe Employee’s home location.
WorkThe Employee’s work location.
DepotThe Employee’s depot location.
SuppliedA supplied location.

EmpMPX

Permitted Value(s)Description
NoneThere is no preferred or mandatory Employee.
PreferredThis is one of possibly several preferred Employees.
MandatoryThis is one of possibly several mandatory Employees.
PreferredOrderedThere is more than one preferred Employee and this one is more preferred than those marked as ‘Preferred’.
MandatoryOrderedThere is more than one mandatory Employee and this one is more preferred than one marked as ‘Mandatory’
MandatoryNotThis is one of possibly several (up to 10) Employees who should not be used.

EmpTravelStatus2

Permitted Value(s)Description
StoppedThe Employee is currently stopped, with engine off.
StationaryThe Employee is temporarily stationary.
MovingThe Employee is currently moving.
UnknownTravel status is currently unknown.

EmpType

Permitted Value(s)Description
OperativeEmployee is an individual.
CrewEmployee is actually a crew made up from employeed individuals.
ContractCrewEmployee is a crew where the individuals are not employed.

EmpTZType

Permitted Value(s)Description
NoneNo timezone is set for the employee so will default to FRU timezone.
SuppliedA timezone will be supplied as well, in another field.
HomeThe timezone of the postal code for the employee’s home.
DepotThe TZ of the postal code for the depot to which the employee is currently posted.
RUThe TZ of the FRU to which the employee is currently posted.

HistoryOptions

All

All recorded changes to the relevant job will be returned.

Manual

For the relevant job, only the initial creation of the job (regardless of the method of job creation) and changes made via ServiceGANTT will be returned.

System

For the relevant job, only changes made via the API and/or ServiceOptimizer system processes will be returned.

LKType

Permitted Value(s)Description
RangeLocal Knowledge is defined for a range of travel times around a central point.
RegionLocal Knowledge is defined on a region by region basis.

LocType

Permitted Value(s)Description
NoneThe spare has no location.
PickupThe spare needs to be picked up from some location.
VehicleThe spare is located in the employees vehicle.
PostcodeThe spare is available from the given postcode.

OpenHoursOvrType

Permitted Value(s)Description
AddThe specified override should be taken as additional to existing open hours.
ReplaceThe specified override should replace existing open hours.

ParameterId

Permitted Value(s)Description
FRUIDThe supplied formal parameter <value> will be used where the role defines a formal parameter using the FRU_ID parameter type.
OPERIDThe supplied formal parameter <value> will be used where the role defines a formal parameter using the OPER_ID parameter type.
TEAMIDThe supplied formal parameter <value> will be used where the role defines a formal parameter using the TEAM_ID parameter type.

ReturnCodeType

Permitted Value(s)Description
OKThe SOAP API call has been successful.
WarningThe SOAP API call has been successful, but there are provisos that have been made.
ErrorThe SOAP API call has failed.
FixedThe Break has been taken so times are actual Break times.

RoleAction

Permitted Value(s)Description
ADDAdd the role (and formal parameters, if supplied) the to user's permissions.
UPDATEUpdate (i.e. replace) the formal parameters for the given role, for the user's permissions.
REMOVEDelete the role (and any formal parameters, if configured) from the user's permissions.

SameUnit

Permitted Value(s)Description
FinalIn a booking operation, the same Final Responsibility Unit (FRU) should be used as previously offered.

SpareSource

Permitted Value(s)Description
None No spares are required on the job, or the job is in the intray.
VanSpares are to be sourced from the van.
ExternalSpares are to be sourced externally.

SpecialPeriodTZType

Permitted Value(s)Description
HomeThe Special Periods are defined assuming the Employee’s home TZ.
FRUUse the TZ of the FRU to which the Employee is posted.
DefaultUse the TZ associated with the Employee.

SplitGrpType

Permitted Value(s)Description
NonConsecShiftThe split group is neither contiguous, nor consecutive.
ConsecShiftThe split group is spread across consecutive shifts (i.e. there may be holidays and/or weekends between the shifts).
ContigShiftThe split group only covers contiguous shifts (there are no non-working days between any part).

StandardActivityTravelMode

Permitted Value(s)Description
NoTravelStandard Activity will be given no travel either to or home from.
ETSTravel will be included in the Standard Activity and it will be assumed that the start time given is the start time for travelling.
ETATravel will be included in the Standard Activity and it will be assumed that the start time given is the arrival time - travel will be added before this time.

StandardActivityTZType

Permitted Value(s)Description
DefaultUse the TZ associated with the Employee.
HomeUse the TZ of the Employee’s home address.
FRUUse the TZ of the FRU to which the Employee is posted.
LocationUse the TZ of the location given for the Standard Activity (if one is given, otherwise defaults to tz_default).

StdExtraDuration

Permitted Value(s)Description
NoneThere is no extra duration required to be added.
LocalKeyPUThere is a need to pick up a key from e.g. next door.
DurationOneDayThe job is an all day job so should be sized according to the Employee’s shift.

UserUnitType

Permitted Value(s)Description
ROOTThe user's responsibility unit type is the top level responsibility unit.
BRU
The user's responsibility unit type is an BRU.
DRU
The user's responsibility unit type is an DRU.
FRUThe user's responsibility unit type is an FRU.

UnitType

Permitted Value(s)Description
FRUThe unit specified is an FRU.
DRUThe unit specified is a DRU.

WorkItemType

Permitted Value(s)Description
JobThe work item is a Job.
StandardActivityThe work item is a Standard Activity.