Skip to content

CreateCase

Creates a new Case by specified input

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

Parameters

string channelId
    Id number of channel to create case

CaseCreateOptions inputData
    Case properties.

Returns

Instance of Case created.

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

ContentType : string
Name or Id of content type. Optional.

CreatedAt : DateTimeOffset
Creator identity. Optional.

CreatedBy : string
Creator identity. Optional.

DeadlineAt : DateTimeOffset
Deadline date of case. If not specified no deadline is set.

Description : string
Description of case. Optional.

EstimatedDuration : number
Estimated duration in hours. Optional.

NextReminderAt : DateTimeOffset
Date of next reminder. If not specified no reminder is set.

Priority : number
Gets or sets the priority of case.

Subject : string
Subject of case. Optional.

See Also