Document toolboxDocument toolbox

Job Create Push Notifications

On This Page:

Related Pages:

Background

This Push Notification can be used to inform an external system whenever a job is created in ServiceOptimizer.

Triggers

When configured (see below), a Job Create push notification is sent whenever a job is created in ServiceOptimizer via the following APIs:

However, please note that:

  • Long jobs are treated as a single job - only one Job Create push notification will be sent when long jobs are created.
  • When booking with Dependency Groups, one Job Create push notification will be sent for each job that is created.

Also, please note that:

  • Rebooking a job not is considered a job creation action, and will not result in a Job Create push notification being sent.
  • ABS Allocate is not considered a job creation action, and will not result in a Job Create push notification being sent.

Configuring

Job Create push notifications can be enabled/disabled by setting the flag value shown below in the sp213_scheduler_parameters database table for the relevant FRU (or, enabled/disabled globally by setting the value in the sp083_system_parameters database table). 

(warning) Remember that before enabling Job Create push notifications, details of where to send the notifications also needs to be set up. Please see the Push Notifications page for details.

Column NameTypeDescription
notification_job_create
boolean

Defines if Job Create push notifications will be sent or not.

Object Format

The Job Create push notification will send a JSON object to the configured API with the following format:

{
	"Type": "0",
	"WorkItemType": "1",
	"WorkItem": {
		"Id": ""
		"WorkStatus": ""
	}
}

Object Properties

The Job Create push notification's JSON object has the following properties.

PropertyTypeRequired?Description
TypestringYes

The type of notification being sent.

For a Job Create push notification, this value will always be 0 (zero), indicating the notification represents a creation action.

WorkItemTypestringYes

The type of work the notification is about.

For a Job Create push notification, this value will always be 1 (one), indicating the notification is about a job.

WorkItemobjectYes

IdstringYesServiceOptimizer's unique ID for the job that the Job Create push notification is about.

WorkStatusstringYesDisStatus code, representing the status of the job at the time of the Job Create push notification.