OnCallEscalationTemplateSNC - Global
-
- UpdatedFeb 1, 2024
- 3 minutes to read
- Washington DC
- API reference
Provides methods to apply escalation policy templates to escalation sets.
For more information about the escalation process, see Defining On-Call Scheduling escalation process.
This API requires the On-Call Scheduling plugin (com.snc.on_call_rotation).
OnCallEscalationTemplateSNC - OnCallEscalationTemplateSNC()
Instantiates an OnCallEscalationTemplateSNC object.
Name | Type | Description |
---|---|---|
None |
Example
This example instantiates an OnCallEscalationTemplateSNC object.
OnCallEscalationTemplateSNC - copyEscalationTemplatetoEscalationSet(String templateSysId, String escalationSetSysId)
Applies an escalation policy template to an escalation set.
When the template is applied to the escalation set, escalation step definition records are created in the Shift Escalation Step Definition [cmn_rota_esc_step_def] table.
Before calling this method, call the deleteEscalationSetSteps() method to delete existing escalation step definitions. If existing records are not deleted first, this method returns an error.
Name | Type | Description |
---|---|---|
templateSysId | String | Sys_id of the escalation policy template in the On-Call Escalation Policy Template [on_call_template_escalation_policy] table. |
escalationSetSysId | String | Sys_id of the escalation set in the Shift Escalation Set [cmn_rota_escalation_set] table. |
Example
This example applies the Rotate through rosters escalation policy template to the Service Desk – Default escalation set. The return object is empty because there are no errors or warnings.
Output:
Example
This example applies the Rotate through roster escalation policy template to the Working Hours – Default escalation set. In this case, the Application Development shift has only two rosters but the template tries to assign a third roster. Since the number of rosters doesn't match, a warning is thrown. Two records are still created in the Shift Escalation Step Definition [cmn_rota_esc_step_def] table.
Output:
OnCallEscalationTemplateSNC - deleteEscalationSetSteps(String escalationSetSysId)
Deletes all escalation step definition records associated with an escalation set.
Name | Type | Description |
---|---|---|
escalationSetSysId | String | Sys_id of the escalation set in the Shift Escalation Set [cmn_rota_escalation_set] table. |
Type | Description |
---|---|
None |
Example
This example deletes all escalation step definitions associated with the Service Desk – Default escalation set.