/
REST Objects Work Item

REST Objects Work Item

5.0.0

Work Item objects are used to represent the details of a Work Item (i.e. a unit of activity, job, task, break, etc.), either to indicate the current state of the Work Item, what the state of a Work Item was at a given point in time, or to indicate what the Work Item state should be updated to be - depending on the context in which the Work Item object is used.     

Do not confuse the Work Item object (which represents the details of a Work Item) with the WorkItem object, for representing how the ServiceBroker WorkItem module is configured for the relevant tenant.

Work Item Object Format

JSON Format
{
  "Assets": [
    {
      "AssetNum": "",
      "Cost": "",
      "Desc": "",
      "FlexForms": [
        "${FlexFormID}"
      ],
      "FlexView": [
        {
          "Title": "GroupName1",
          "Items": [
            {
              "Label": "labeltext",
              "Value": "valuetext"
            }
          ]
        }
      ],
      "InServiceDate": "",
      "IsComponent": false,
      "LastServiceDate": "",
      "Location": "",
      "Mfg": "",
      "MfgCode": "",
      "Model": "",
      "ProdCode": "",
      "ProdNum": "",
      "ProdLine": "",
      "RetailerID": "",
      "RetailerName": "",
      "SerialNum": "",
      "ServiceCodes": [],
      "Status": "",
      "Type": "",
      "WhereAbouts": ""
    }
  ],
  "AtRisk": {
    "Type": "",
    "Offset": 0
  },
  "Booking": {
    "OrderDate": "",
    "SchdArr": "",
    "SchdStart": "",
    "SchdEnd": "",
    "ServiceDesc": "",
    "ServiceOrg": "",
    "Tech": "",
    "Offer": {
      "OfferId": "",
      "GroupId": "",
      "SchdStart": "",
      "SchedEnd": "",
      "Source": ""
    },
    "TechInfo": {
        "Name": "",
        "Phone": "",
        "ImageUrl": ""
    },
    "ServiceOrgInfo": {
      "Name": "",
      "ServiceOrg": "",
      "ExtSysId": "",
      "NetworkProviderType": "",
      "Address": {
        "AddrLine1": "",
        "AddrLine2": "",
        "City": "",
        "Region": "",
        "PostalCode": "",
        "Country": ""
      },
      "Phone": "",
      "Email": "",
      "ImageUrl": ""
    }
  },
  "Claims": [
    {
      "ClaimNum": "",
      "BatchNum": "",
      "SeqNum": "",
      "Status": "",
      "StatusDesc": "",
      "Amount": ""
    }
  ],
  "Desc": "",
  "FlexView": [
    {
      "Title": "GroupName1",
      "Items": [
        {
          "Label": "labeltext",
          "Value": "valuetext"
        }
      ]
    }
  ],
  "Flags": {
    "AllowRebook": false,
    "AllowReject": false,
    "AllowReschedule": false,
    "Billable": false,
    "CallConfirmed": false,
    "ClerkReview": false,
    "Deleted": false,
    "Fixed": false,
    "HardStop": false,
    "IsDelivered": false,
    "IsRead": false,
    "IsRedacted": false,
    "Paused": false,
    "RepeatCall": false,
    "IsAllDayJob": false
  },
  "Id": "",
  "JobSourceInfo": {
    "SourceId": "SS,SD,SM"
  },
  "Location": {
    "Address": {
      "AddrLine1": "",
      "AddrLine2": "",
      "AddrLine3": "",
      "AddrLine4": "",
      "AddrType": "",
      "City": "",
      "Country": "",
      "Intersection": "",
      "Lat": "",
      "Lon": "",
      "PostalCode": "",
      "Region": ""
    },
    "Contacts": [
      {
        "ContactPoint": [
          {
            "Mode": "Email,Phone,Mobile,FaceTime",
            "Value": ""
          }
        ],
        "ContactType": "",
        "FirstName": "",
        "LastName": "",
        "PreferredName": ""
      }
    ],
    "LanguageId": "",
    "LocationNum": "",
    "Name": "",
    "POReq": false,
    "SigReq": true,
    "StorageLocationId": "",
    "Type": "",
    "WorkCenter": ""
  },
  "Notes": "",
  "Payment": [
    {
      "AssetNum": "",
      "AuthorityNum": "",
      "AuthorizationLimit": 100.0,
      "ContractNum": "",
      "PONum": "",
      "POAmount": "",
      "CoPayAmount": "",
      "ServiceContractId": "",
      "ServiceContractEndDate": "",
      "ServiceContractProvider": ""
    }
  ],
  "Photos": [
    {
      "Date": "",
      "Id": "",
      "Note": "",
      "URL": ""
    }
  ],
  "Priority": "",
  "RejectReasonCode": "",
  "RejectReasons": [{
      "code": "",
      "desc": ""
  }],
  "ServiceProvider": {
      "NetworkProviderType": ""
  },
  "Stage": 0,
  "TimeConstraints": [
    {
      "Range": {
        "Days": "0000000",
        "RangeStartDt": "",
        "RangeEndDt": "",
        "DayStartTm": "",
        "DayEndTm": "",
        "TZ": ""
      },
      "Period": {
        "Start": "",
        "End": ""
      },
      "Desc": "",
      "Type": 1001
    }
  ],
  "Type": "",
  "WorkStatus": 0,
  "WorkSubStatus": 0,
  "WorkType": {
    "Desc": "",
    "Dur": 0,
    "Name": "",
    "ReqSkills": ["",""]
    "ReqSkillSetId": "",
    "Skills": [
      {
        "Comp": "",
        "Id": ""
      }
    ]
  }
}

Work Item Object Properties


PropertyTypeRequired?DescriptionField Mappings
ServiceDispatchServiceMobilityServiceScheduling
AssetsarrayNo

An array of Asset objects, representing properties related to items of physical equipment (i.e. assets) that are associated with the Work Item (e.g. normally, assets located at the location of the Work Item).


see Asset objects.see Asset objects.see Asset objects.
BookingobjectNo

A Booking object, representing details of the Work Item related to when the Work Item was created, when it is scheduled to be carried out, who will be performing the work, etc.


See Booking objects.See Booking objects.See Booking objects.
CancelDateDatetime

Scheduling job cancellation timestamp

N/AN/AcancelDate
Claimsarray

The Claims object used within the ServiceMobility work order

N/A/ClaimsN/A
DescstringNo

A short description of the Work Item.

ProbDesc/Descriptiondesc(bookJob) vs actNotes (getJob)
ExtensionsobjectNo

This object contains an optional collection of key/value pairs.

These key/value are defined and controlled by the customer and are typically used to assist in integration by passing additional data around the system.

Currently, this is only used for GET WorkItem requests and is dynamically generated.

N/A

N/AN/A
FlexViewarrayNoAn array of FlexView objects, representing associated flexible "extra" items of information associated with the Work Item.See FlexView objects.See FlexView objects.

See FlexView objects.

When desc2 contains "more notes" it is mapped to the FlexViews property

FlagsobjectNo

A Flags object, representing various boolean flag values of the Work Item.


see Flags objects.see Flags objects.see Flags objects.
IdstringNo

The ID of the Work Item.


(mfgId:CallNo -> OrderNum)/OrderNumJobId
JobSourceInfo

The JobSourceInfo property provides the originating source of the job.  This field will provide SM for ServiceMobility, SS for ServiceScheduling, or SD for ServiceDispatch.

N/A

N/AN/A
LastModifiedDateDatetime

Last modified UTC timestamp

UpdatedOnUTC

(SD→CDM only)

N/AN/A
LocationobjectNoA Location object, representing the location of the Work Item./ConsumerInfo/Location/customer
NotesstringNo

Any notes associated with the Work Item.


N/A/Notes[]

moreNotes

(info) The ServiceBroker Work Item Object Notes field is only mapped to the ServiceScheduling moreNotes field when the moreNotes content is plain text. See the FlexView field for when the moreNotes field contains XML.

PaymentarrayNoAn array of Payment objects, representing payment information associated with the Work Item.see Payment objects./ServiceContractssee Payment objects,
PhotosarrayNoAn array of Photo objectsN/A/PhotosN/A
PrioritystringNo

A representation of the priority (importance) of the Work Item.

(info) See table below for a definition of possible Priority property values.

N/A/Prioritypriority(0-99)
RejectReasonCodestringNo

This optional object contains the reason why the mobile worker rejected the work order.

N/A/RejectReasonCodeN/A
RejectReasonsobjectNo

The RejectReasons object provides an override within ServiceMobility for the standard reject reasons within the system categories.

N/A/RejectReasonN/A
RepairLocationobjectNo

Contains the repair location for the job

N/A/RepairLocationN/A
ServiceProviderobjectNo

The ServiceProvider object

N/A/ServiceProviderN/A
Stageinteger


N/AN/AN/A
TimeConstraintsarrayNoAn array of TimeConstraint objects, representing any constraints relating to when the Work Item can be performed.N/A/TimeConstraintsN/A
TypestringNoThe Work Item's type of work (i.e. Job, Break or Activity).N/AN/AN/A
WorkStatusintegerNo

A code representing the status of the Work Item.

(info) See table below for a definition of possible WorkStatus property values.

CallStatus/OrderStatusdisStatus
WorkSubStatusintegerNo

An optional, unchecked sub-status code from the relevant sub-system.

CallSubStatusN/AN/A
WorkTypeobjectNoA WorkType object, representing the type of work that the Work Item relates to in more detail than the Type field.see WorkType objects.see WorkType objects.see WorkType objects.

Priority Property Values

ValueDescriptionServiceMobilityServiceScheduling
0Low10010-9
1Low100110-19
2Low100120-29
3Medium100230-39
4Medium100240-49
5Medium100250-59
6Medium100260-69
7High100370-79
8High100380-89
9High100390-99

WorkStatus Property Values

ValueDescriptionServiceDispatchServiceMobilityServiceSchedulingNotes
0Eamarked/PendingOPEN9EarmarkedThe Work Item is in a pending status awaiting the Worker to either accept or reject it.
10Contacted/Acknowledged/AcceptedACCEPTED

HUB: 9 - New

ContactedThe Work Item has been accepted by the Worker.
20En RouteEN ROUTE6TravellingThe Worker is en route (traveling) to the customer location.
30Travel Complete
8
The Worker has completed travel to the location although they may not yet be onsite. This can happen when the Worker has to park some distance away from the actual service location.
40OnsiteONSITE7LoggedOnThe Worker has arrived onsite at the customer location.
50Offsite
N/A
The Worker has left the site of the customer location.
60Closed CompleteCOMPLETED4096ClearedThe Worker has completed the Work Item and marked it as completed.
70Closed IncompleteRESCHEDULED4097LoggedOffThe Worker has marked the Work Item as closed but incomplete.
80RejectedREJECTED1001N/AThe Worker has rejected the Work Item.
82ConsumerN/AN/AN/A
100ClaimedCLAIMEDN/AN/AThe Work Item is in claimed status.
-1CancelledCANCELLEDN/AN/A
-9TentativeN/AN/ATentative (0)(warning) Tentative/Fixed are not mapped.

Related content

REST Objects Asset
REST Objects Asset
More like this
REST Work Item Appointment Book
REST Work Item Appointment Book
Read with this
REST Objects WorkItem
REST Objects WorkItem
More like this
REST Objects Appointment Search
REST Objects Appointment Search
Read with this
REST Objects WorkType
REST Objects WorkType
More like this
WorkItemNotifications REST API 1
WorkItemNotifications REST API 1
Read with this