Skip to content

GetCase

Gets a case by its ID.

1
$Domain.GetCase(id: string):( Case | null )

Parameters

string id
    The ID of the case. An invalid GUID throws an error.

Returns

The Case instance if found; otherwise, null.

Examples

1
2
3
4
5
var relatedCase = $Domain.GetCase($Xml.Evaluate('CaseId'));

if (relatedCase) {
    relatedCase.IsClosed = true;
}

See Also