Skip to content

CreateCase

Creates a new Case with the specified input.

1
$Domain.CreateCase(channelId: string, inputData: CaseCreateOptions):Case

Parameters

string channelId
    The ID of the channel to create the case in.

CaseCreateOptions inputData
    The case properties.

Returns

The created Case instance.

Remarks

Example

1
2
3
4
5
6
7
var channelId = $Xml.Evaluate('ChannelId');
var newCase = $Domain.CreateCase(channelId, {
   Subject : 'hello',
   Description : 'hi team members'
   Priority : 1
});
newCase.AddTag('newcase');

Types

CaseCreateOptions

Specifies options for creating a new case.

ContentType : string
The name or ID of the content type. Optional.

CreatedAt : DateTimeOffset
The creation date and time. Optional.

CreatedBy : string
The creator identity. Optional.

DeadlineAt : DateTimeOffset
The deadline date and time for the case. If not specified, no deadline is set.

Description : string
The description of the case. Optional.

EstimatedDuration : number
The estimated duration in hours. Optional.

NextReminderAt : DateTimeOffset
The date and time of the next reminder. If not specified, no reminder is set.

Priority : number
Gets or sets the priority of the case.

Subject : string
The subject of the case. Optional.

See Also