Skip to content

AddTag

Adds a tag to the case.

1
myCase.AddTag(tag: string):Case

Parameters

string tag
    The name of the tag to add.

Returns

The current Case instance.

Remarks

Tags are compared without regard to case, so adding an existing tag has no effect. Characters other than letters, digits, spaces and - _ . + ( ) / \ @ | $ & are removed from the tag. The change is saved when the operation that runs the script completes.

Examples

Tag urgent cases

1
2
3
if ($Case.Profile.Evaluate('Priority') === 'High') {
    $Case.AddTag('urgent');
}

See Also