ARSperl Programmer's Manual - ars_CreateEscalation

## `ars_CreateEscalation(ctrl, escalationHash)`

This function creates a new escalation. You must first populate the `escalationHash` before calling this routine.

`escalationHash` is an Escalation Attributes hash.

On success
  Returns 1
On failure
  Returns 0

Example:

> This example copies an existing escalation to a new escalation. I.e. it simply re-saves the escalation under a new name.

          ($e = ars_GetEscalation($c, "E-foobar")) ||
    	    die $ars_errstr;
          $e->{name} = "Copy of ".$e->{name};
          ars_CreateEscalation($c, $e) || die $ars_errstr;

Notes: Hash keys `helpText, owner` and `changeDiary` are optional when calling this routine.

This function was introduced in version 1.90 of ARSperl

Back to Table of Contents