$Domain.CreateCase

Overview

Creates a new Case by specified input

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

Arguments

string channelId

Id number of channel to create case

CaseCreateOptions inputData

Case properties.

Returns

Instance of Case | case created.

Example

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

Types

CaseCreateOptions

{ // Name or Id of content type. Optional. ContentType : string // Creator identity. Optional. CreatedAt : DateTimeOffset // Creator identity. Optional. CreatedBy : string // Deadline date of case. If not specified no deadline is set. DeadlineAt : DateTimeOffset // Description of case. Optional. Description : string // Estimated duration in hours. Optional. EstimatedDuration : number // Date of next reminder. If not specified no reminder is set. NextReminderAt : DateTimeOffset // Priority of case. Optional. If not specified "Normal" priority is used. Priority : number // Subject of case. Optional. Subject : string }

Copyright © 2010 - 2023 Emakin. All rights reserved.