Skip to content

Copy

Creates a new copy of the current case.

1
myCase.Copy(targetChannel?: string):Case

Parameters

string targetChannel optional
    The ID of the channel to copy the case to. Defaults to the channel of the current case.

Returns

The new Case instance.

Remarks

The new case gets the subject, description, priority, creator, deadline, estimated duration, profile data and tags of the current case, and a copy of its messages and comments. It is not assigned, and it has no milestones. When the case is copied to another channel, the content type and the system tags are not copied.

Examples

Open a follow-up case linked to the current one

1
2
3
var followUp = $Case.Copy();

$Case.AddLink(followUp, 'Child');

See Also