@servicenow/sdk - v4.7.0
    Preparing search index...
    type SLADurationConfig = {
        duration?: Duration;
        durationType?: string | Record<"cmn_relative_duration">;
        relativeDurationWorksOn?: DurationWorksOn;
        schedule?: string | Record<"cmn_schedule">;
        scheduleSource?: ScheduleSource;
        scheduleSourceField?: string;
    }
    Index

    Properties

    duration?: Duration

    Duration for the SLA. Use the Duration() helper function. Required when durationType is empty (user specified duration).

    duration: Duration({ hours: 4 })                        // 4 hours
    duration: Duration({ days: 1, hours: 2, minutes: 30 }) // 1 day, 2 hours, 30 minutes
    durationType?: string | Record<"cmn_relative_duration">

    Reference to relative duration configuration

    relativeDurationWorksOn?: DurationWorksOn

    Which record the relative duration calculation works on

    'Task record'
    
    schedule?: string | Record<"cmn_schedule">

    Reference to a schedule record Required when scheduleSource is 'sla_definition' (default) Not needed when scheduleSource is 'no_schedule' or 'task_field'

    scheduleSource?: ScheduleSource

    Source of the schedule to use for SLA calculation

    'sla_definition'
    
    scheduleSourceField?: string

    Field containing the schedule reference when using dynamic schedule