@servicenow/sdk - v4.13.3
    Preparing search index...

    Variable cmn_schedule_spanConst

    cmn_schedule_span: {
        display: "name";
        extends: "business_calendar_span";
        label: "Schedule Entry";
        name: "cmn_schedule_span";
        schema: {
            all_day: Typed<boolean, { default: false; label: "All Day" }>;
            days_of_week: Typed<string, { default: "1"; label: "Days of week" }>;
            end_date_time: Typed<string, { label: "End date time" }>;
            float_day: Typed<
                1
                | 2
                | 3
                | 4
                | 5
                | 6
                | 7,
                {
                    choices: {
                        "1": { label: "Sunday"; sequence: 1 };
                        "2": { label: "Monday"; sequence: 2 };
                        "3": { label: "Tuesday"; sequence: 3 };
                        "4": { label: "Wednesday"; sequence: 4 };
                        "5": { label: "Thursday"; sequence: 5 };
                        "6": { label: "Friday"; sequence: 6 };
                        "7": { label: "Saturday"; sequence: 7 };
                    };
                    default: "1";
                    dropdown: "dropdown_without_none";
                    label: "Float day";
                },
            >;
            float_week: Typed<
                4
                | 1
                | 3
                | 2
                | "last",
                {
                    choices: {
                        "1": { label: "1st"; sequence: 1 };
                        "2": { label: "2nd"; sequence: 2 };
                        "3": { label: "3rd"; sequence: 3 };
                        "4": { label: "4th"; sequence: 4 };
                        last: { label: "Last"; sequence: 5 };
                    };
                    default: "1";
                    dropdown: "dropdown_without_none";
                    label: "Float week";
                },
            >;
            month: Typed<
                string
                | number,
                { columnType: "month_of_year"; label: "Month" },
            >;
            monthly_type: Typed<
                "dom"
                | "nth"
                | "lwdom"
                | "ldom",
                {
                    choices: {
                        dom: { label: "Day of the month"; sequence: 1 };
                        ldom: { label: "Last Day of the Month"; sequence: 4 };
                        lwdom: { label: "Last Week Day of the Month"; sequence: 3 };
                        nth: { label: "Day of the Week"; sequence: 2 };
                    };
                    default: "dom";
                    dropdown: "dropdown_without_none";
                    label: "Monthly type";
                },
            >;
            name: Typed<string, { label: "Name"; maxLength: 80 }>;
            notes: Typed<string, { label: "Notes"; maxLength: 1000 }>;
            override_start_date: Typed<number, { label: "Override start date" }>;
            parent: Typed<
                | string
                | Record<"cmn_schedule_span">
                | ExplicitKey<"cmn_schedule_span">
                | TableBrand<"cmn_schedule_span">,
                { label: "Parent"; referenceTable: "cmn_schedule_span" },
            >;
            repeat_count: Typed<
                string
                | number,
                { columnType: "repeat_count"; default: "1"; label: "Repeat count" },
            >;
            repeat_type: Typed<
                | "weekly"
                | "monthly"
                | "yearly"
                | "daily"
                | "weekdays"
                | "weekends"
                | "weekMWF"
                | "weekTT"
                | "specific",
                {
                    choices: {
                        daily: { label: "Daily"; sequence: 0 };
                        monthly: { label: "Monthly"; sequence: 6 };
                        specific: { label: "Specific"; sequence: 8 };
                        weekdays: { label: "Every Weekday (Mon-Fri)"; sequence: 1 };
                        weekends: { label: "Every Weekend (Sat, Sun)"; sequence: 2 };
                        weekly: { label: "Weekly"; sequence: 5 };
                        weekMWF: { label: "Every Mon, Wed, Fri"; sequence: 3 };
                        weekTT: { label: "Every Tue, Thu"; sequence: 4 };
                        yearly: { label: "Yearly"; sequence: 7 };
                    };
                    columnType: "repeat_type";
                    dropdown: "dropdown_with_none";
                    label: "Repeat type";
                },
            >;
            repeat_until: Typed<number, { label: "Repeat until" }>;
            schedule: Typed<
                | string
                | Record<"cmn_schedule">
                | ExplicitKey<"cmn_schedule">
                | TableBrand<"cmn_schedule">,
                { label: "Schedule"; referenceTable: "cmn_schedule" },
            >;
            show_as: Typed<
                "busy"
                | "free"
                | "tentative",
                {
                    choices: {
                        busy: { label: "Busy"; sequence: 1 };
                        free: { label: "Free"; sequence: 2 };
                        tentative: { label: "Tentative"; sequence: 3 };
                    };
                    default: "busy";
                    dropdown: "dropdown_without_none";
                    label: "Show as";
                },
            >;
            start_date_time: Typed<string, { label: "Start date time" }>;
            sys_id: Typed<
                string,
                {
                    label: [{ label: "Sys ID"; language: "en"; plural: "Sys IDs" }];
                    primary: true;
                },
            >;
            type: Typed<
                "appointment"
                | "call"
                | "exclude"
                | "meeting"
                | "time_off",
                {
                    choices: {
                        appointment: { label: "Appointment"; sequence: 1 };
                        call: { label: "Phone call"; sequence: 2 };
                        exclude: { label: "Excluded"; sequence: 3 };
                        meeting: { label: "Meeting"; sequence: 4 };
                        time_off: { label: "Time off"; sequence: 5 };
                    };
                    dropdown: "dropdown_with_none";
                    label: "Type";
                },
            >;
            yearly_type: Typed<
                "float"
                | "doy",
                {
                    choices: {
                        doy: { label: "Day of the year"; sequence: 1 };
                        float: { label: "Floating"; sequence: 2 };
                    };
                    default: "doy";
                    dropdown: "dropdown_without_none";
                    label: "Yearly type";
                },
            >;
        };
    } = ...

    Schedule Entry - one entry on a cmn_schedule, either a single block or the definition of a recurring one. Maintenance windows and blackout/freeze periods are modelled as a cmn_schedule plus its entries here; there is no separate calendar table.

    repeat_type drives which of the recurrence columns apply: monthly_type for monthly, yearly_type for yearly, and float_day/float_week for the "nth weekday of the month" forms.

    Type Declaration

    • Readonlydisplay: "name"
    • Readonlyextends: "business_calendar_span"
    • Readonlylabel: "Schedule Entry"
    • Readonlyname: "cmn_schedule_span"
    • Readonlyschema: {
          all_day: Typed<boolean, { default: false; label: "All Day" }>;
          days_of_week: Typed<string, { default: "1"; label: "Days of week" }>;
          end_date_time: Typed<string, { label: "End date time" }>;
          float_day: Typed<
              1
              | 2
              | 3
              | 4
              | 5
              | 6
              | 7,
              {
                  choices: {
                      "1": { label: "Sunday"; sequence: 1 };
                      "2": { label: "Monday"; sequence: 2 };
                      "3": { label: "Tuesday"; sequence: 3 };
                      "4": { label: "Wednesday"; sequence: 4 };
                      "5": { label: "Thursday"; sequence: 5 };
                      "6": { label: "Friday"; sequence: 6 };
                      "7": { label: "Saturday"; sequence: 7 };
                  };
                  default: "1";
                  dropdown: "dropdown_without_none";
                  label: "Float day";
              },
          >;
          float_week: Typed<
              4
              | 1
              | 3
              | 2
              | "last",
              {
                  choices: {
                      "1": { label: "1st"; sequence: 1 };
                      "2": { label: "2nd"; sequence: 2 };
                      "3": { label: "3rd"; sequence: 3 };
                      "4": { label: "4th"; sequence: 4 };
                      last: { label: "Last"; sequence: 5 };
                  };
                  default: "1";
                  dropdown: "dropdown_without_none";
                  label: "Float week";
              },
          >;
          month: Typed<
              string
              | number,
              { columnType: "month_of_year"; label: "Month" },
          >;
          monthly_type: Typed<
              "dom"
              | "nth"
              | "lwdom"
              | "ldom",
              {
                  choices: {
                      dom: { label: "Day of the month"; sequence: 1 };
                      ldom: { label: "Last Day of the Month"; sequence: 4 };
                      lwdom: { label: "Last Week Day of the Month"; sequence: 3 };
                      nth: { label: "Day of the Week"; sequence: 2 };
                  };
                  default: "dom";
                  dropdown: "dropdown_without_none";
                  label: "Monthly type";
              },
          >;
          name: Typed<string, { label: "Name"; maxLength: 80 }>;
          notes: Typed<string, { label: "Notes"; maxLength: 1000 }>;
          override_start_date: Typed<number, { label: "Override start date" }>;
          parent: Typed<
              | string
              | Record<"cmn_schedule_span">
              | ExplicitKey<"cmn_schedule_span">
              | TableBrand<"cmn_schedule_span">,
              { label: "Parent"; referenceTable: "cmn_schedule_span" },
          >;
          repeat_count: Typed<
              string
              | number,
              { columnType: "repeat_count"; default: "1"; label: "Repeat count" },
          >;
          repeat_type: Typed<
              | "weekly"
              | "monthly"
              | "yearly"
              | "daily"
              | "weekdays"
              | "weekends"
              | "weekMWF"
              | "weekTT"
              | "specific",
              {
                  choices: {
                      daily: { label: "Daily"; sequence: 0 };
                      monthly: { label: "Monthly"; sequence: 6 };
                      specific: { label: "Specific"; sequence: 8 };
                      weekdays: { label: "Every Weekday (Mon-Fri)"; sequence: 1 };
                      weekends: { label: "Every Weekend (Sat, Sun)"; sequence: 2 };
                      weekly: { label: "Weekly"; sequence: 5 };
                      weekMWF: { label: "Every Mon, Wed, Fri"; sequence: 3 };
                      weekTT: { label: "Every Tue, Thu"; sequence: 4 };
                      yearly: { label: "Yearly"; sequence: 7 };
                  };
                  columnType: "repeat_type";
                  dropdown: "dropdown_with_none";
                  label: "Repeat type";
              },
          >;
          repeat_until: Typed<number, { label: "Repeat until" }>;
          schedule: Typed<
              | string
              | Record<"cmn_schedule">
              | ExplicitKey<"cmn_schedule">
              | TableBrand<"cmn_schedule">,
              { label: "Schedule"; referenceTable: "cmn_schedule" },
          >;
          show_as: Typed<
              "busy"
              | "free"
              | "tentative",
              {
                  choices: {
                      busy: { label: "Busy"; sequence: 1 };
                      free: { label: "Free"; sequence: 2 };
                      tentative: { label: "Tentative"; sequence: 3 };
                  };
                  default: "busy";
                  dropdown: "dropdown_without_none";
                  label: "Show as";
              },
          >;
          start_date_time: Typed<string, { label: "Start date time" }>;
          sys_id: Typed<
              string,
              {
                  label: [{ label: "Sys ID"; language: "en"; plural: "Sys IDs" }];
                  primary: true;
              },
          >;
          type: Typed<
              "appointment"
              | "call"
              | "exclude"
              | "meeting"
              | "time_off",
              {
                  choices: {
                      appointment: { label: "Appointment"; sequence: 1 };
                      call: { label: "Phone call"; sequence: 2 };
                      exclude: { label: "Excluded"; sequence: 3 };
                      meeting: { label: "Meeting"; sequence: 4 };
                      time_off: { label: "Time off"; sequence: 5 };
                  };
                  dropdown: "dropdown_with_none";
                  label: "Type";
              },
          >;
          yearly_type: Typed<
              "float"
              | "doy",
              {
                  choices: {
                      doy: { label: "Day of the year"; sequence: 1 };
                      float: { label: "Floating"; sequence: 2 };
                  };
                  default: "doy";
                  dropdown: "dropdown_without_none";
                  label: "Yearly type";
              },
          >;
      }