Skip to content

$Case

The current Case instance.

1
const $Case: Case;

Remarks

This variable is available in scripts that run on a case, such as the scripts of a channel and the scripts of processes started on a case.

Examples

Classify a new case

1
2
3
4
5
6
if ($Case.Subject.toLowerCase().indexOf('urgent') >= 0) {
    $Case.Priority = 4;
    $Case.AddTag('Urgent');
}

$Case.Milestones.Add('First Response', 'PT4H');

Update the case profile and notify listeners

1
2
$Case.Profile.SetValue('CustomerId', $Xml.Evaluate('Customer/Id'));
$Case.ProfileChanged();

Capabilities

Assignment and Deadlines

Details

Lifecycle and Scheduling

Audit

Classification and Tracking

Messaging