REST Objects Appointment Book
5.0.0
The Appointment Book object represents the parameters for booking an appointment offer, when using the REST Work Item Appointment Book.
On this page:
Related pages:
Appointment Book Object Format
Appointment Book Object Properties
Field Mappings
REST Work Item Appointment Book calls may result in an appointment booking request being directed to either a ServiceDispatch system, a ServiceScheduling system, or both. (See the REST Work Item Appointment Search definition for details on how this is configured).
As a result, all of the fields in the Appointment Book Object are passed through to ServiceDispatch and/or ServiceScheduling, which means that the field definitions depend on the API that they are passed to.
In addition, fields may, or may not be, mandatory, depending on the system(s) to which they are passed, with the exception of some fields which are mandated by ServiceBroker itself (and which are marked below).
ServiceDispatch Field Mappings
When an REST Work Item Appointment Book call results in an appointment booking request being directed to ServiceDispatch, the fields that are present in the Appointment Book Object (below) with a ServiceDispatch field mapping will be passed to ServiceDispatch.
As a result, the definition of these fields depends on how ServiceDispatch handles the fields.
Please speak with the ServicePower customer services team for the field definitions.
ServiceScheduling Field Mappings
When an REST Work Item Appointment Book call results in an appointment booking request being directed to ServiceScheduling, the fields that are present in the Appointment Book Object (below) with a ServiceScheduling field mapping will be passed to ServiceScheduling.
As a result, the definition of these fields depends on how ServiceScheduling handles the fields.
Please see the appropriate version of the ServiceScheduling sp:ApptBookRequest
API for the field definitions.
Property | Type | Required? | Description | Field Mappings | |
---|---|---|---|---|---|
ServiceDispatch | ServiceScheduling | ||||
|
| No | An array of Asset objects, representing properties related to items of physical equipment (i.e. assets) that need to be associated with the Work Item that will be created as result of the appointment booking request (e.g. normally, assets located at the location of the Work Item). | See: Asset objects | See: Asset objects |
|
| No | A Booking object, representing details of when the Work Item is to be carried out, who will be performing the work, etc. Details of the REST Objects Appointment Offer obtained via the REST Work Item Appointment Search are included in the Booking object, as part of the process of allowing a Work Item to be created based on an appointment offer. | See: Booking objects | See Booking Objects |
|
| No | A short description of the Work Item that will be created as result of the appointment booking request. |
|
|
|
| No | An additional field for further text describing the Work Item that will be created as result of the appointment booking request. |
|
|
|
| No | The is the time (in minutes) required to complete the job in addition to what is defined in ServiceOptimizer for this job type. The maximum value which will be accepted for this field plus ExtraOverhead (below) is specified by the SJEDMax database parameter. The maximum total duration for the job is specified by the SJTDMax database parameter. Where this booking is based on offers from a previous call to OfferAppts, the values supplied in this field in this booking request must be the same as those supplied on the OfferAppts call. | SearchProcedure.JobDuration | extraDuration |
|
| No | This iis the extra overhead time required to do this job in addition to the overhead time defined for this job type. The extra time is in minutes. Where this booking is based on offers from a previous call to OfferAppts, the values supplied in this field in this booking request must be the same as those supplied on the OfferAppts call. | N/A | extraOverhead |
|
| No | A Flags object, representing various boolean flag values to be set for the Work Item that will be created as result of the appointment booking request. | See: Flags objects | See: Flags objects |
|
| No | An array of FlexView objects, representing associated flexible "extra" items of information to be associated with the Work Item that will be created as result of the appointment booking request. | See FlexView objects | See: FlexView objects |
|
| Yes | A unique identifier for the Work Item that will be created as result of the appointment booking request. |
|
|
|
| No | This is used to try and ensure that the jobs left in the in-tray are the less important ones and that the more important jobs are in the schedule. Must take a value between 0 and 9. Where this booking is based on offers from a previous call to OfferAppts, the values supplied in this field in this booking request must be the same as those supplied on the OfferAppts call. | N/A |
|
|
| No | A Location object, representing the location to be associated with the Work Item that will be created as result of the appointment booking request. | See: Location object | See: Location object |
|
| No | The ID of the country assigned. | ProductLocation.SiteID | siteID |
|
| No | Any notes to be associated with the Work Item that will be created as result of the appointment booking request. | N/A |
The ServiceBroker Appointment Book Object |
|
| No | An array of Payment objects, representing payment information to be associated with the Work Item that will be created as result of the appointment booking request. | See: Payment objects | See: Payment objects |
|
| No | A representation of the priority (importance) of the Work Item that will be created as result of the appointment booking request. Please see the REST Objects Work Item for a definition of possible | N/A |
|
|
| No | This names a preferred, mandatory or excluded operative for this job | N/A | listReqEmps.reqEmp[].empID |
|
| No | Accordingly, the Mandatory, Preferred and Excluded options are referred to simply as MPX. MPX requirements are specified using the In the offer and booking SOAP APIs it is possible to specify up to a maximum of 10 MPX employees. There may be a mixture of
| N/A | listReqEmps.reqEmp[].MPX |
|
| No | An array of TimeConstraint objects, representing any constraints relating to when the Work Item that will be created as a result of the appointment booking request can be performed. | See: TimeConstraint objects | See: TimeConstraint objects |
|
| No | The type of work (i.e. Job, Break or Activity) for the Work Item that will be created as result of the appointment booking request. | N/A | N/A |
|
| No | A code representing the status of the Work Item that will be created as result of the appointment booking request. Please see the REST Objects Work Item for a definition of possible |
|
|
|
| No | A WorkType object, representing the type of work that the Work Item that will be created as a result of the appointment booking request relates to in, more detail than the | See: WorkType object | See: WorkType object |
is used to try and ensure that the jobs left in the in-tray are the less important ones and that the more important jobs are in the schedule. Must take a value between 0 and 9. Where this booking is based on offers from a previous call to OfferAppts, the values supplied in this field in this booking request must be the same as those supplied on the OfferAppts call. |
|
is used to try and ensure that the jobs left in the in-tray are the less important ones and that the more important jobs are in the schedule. Must take a value between 0 and 9. Where this booking is based on offers from a previous call to OfferAppts, the values supplied in this field in this booking request must be the same as those supplied on the OfferAppts call. |
|
is used to try and ensure that the jobs left in the in-tray are the less important ones and that the more important jobs are in the schedule. Must take a value between 0 and 9. Where this booking is based on offers from a previous call to OfferAppts, the values supplied in this field in this booking request must be the same as those supplied on the OfferAppts call. |
|