Using schedules and calendars

  • Release version: Washingtondc
  • Updated February 1, 2024
  • 2 minutes to read
  • Summarize
    Summarized using AI
    This content was generated using new OpenAI-powered functionality. Results are provided on an as is basis and are not guaranteed to be accurate or complete.

    Summary of Using schedules and calendars

    The ServiceNow AI Platform allows users to create graphical calendar displays through specific applications, including Project Management, Maintenance Schedules, Group On-Call Rotation, and Field Service Management. These displays can be viewed in daily, weekly, or monthly formats using schedule pages that contain scripting to provide functionality.

    Show full answer Show less

    Key Features

    • Schedule Pages: Accessed via System Scheduler > Schedules > Schedule Pages, these pages contain various fields that define their functionality.
    • Fields in Schedule Pages: Key fields include:
      • Name: General identifier for the schedule page.
      • Schedule Type: Unique identifier for the schedule page, accessible via a specific URI parameter.
      • View Type: Determines the display of fields; options include Calendars and Schedule Pages.
      • Description: Optional additional information about the schedule page.
      • Init Function Name: Specifies the JavaScript function for calendar type schedules.
      • HTML and Client Script: Allow for customization of the display through scripting.
      • Server AJAX Processor: Used in Calendar type schedules to return schedule items and spans.
    • Calendar Interaction: Users can create, view, and edit events using the Schedule calendar, which can be invoked through various methods including URLs and UI Actions.

    Key Outcomes

    By utilizing schedule pages effectively, ServiceNow customers can manage and visualize scheduling needs, streamline project timelines, and enhance team coordination. The ability to customize calendar displays and manage events will lead to improved operational efficiency and better resource allocation.

    Specific applications within the ServiceNow AI Platform generate graphical calendar displays based on schedule pages.

    These schedule pages appear in daily, weekly, or monthly views. Currently, the applications using schedule pages include:
    • Project Management
    • Maintenance Schedules
    • Group On-Call Rotation
    • Field Service Management
    Schedule pages are records that contain the scripts that determine the functionality of the graphical display.
    • Because of the heavy degree of scripting involved in a schedule page, you should, for most instances, use the default schedule pages in the base platform.
    • The schedule page uses a URL with a series of parameters attached to generate the graphical display.
    • A schedule page controls calendar content (cmn_schedule_page) record.

    To access Schedule Pages, navigate to System Scheduler > Schedules > Schedule Pages. The Schedule Pages form provides the following fields:

    Field Field Type Description
    Name String General name used to identity the current schedule page.
    Schedule type String Schedule type is a string that is used to uniquely identity the schedule page via the "sysparm_page_schedule_type" URI parameter. For example, a schedule page could be accessed as follows:

    /show_schedule_page.do?sysparm_page_schedule_type=gantt_chart&sysparm_timeline_task_id=d530bf907f0000015ce594fd929cf6a4

    Alternatively, you can access the schedule page can by setting the "sysparm_page_sys_id" URI parameter to the unique 32 character hexadecimal system identifier of the schedule page.

    View Type Choice Each view type displays different field combinations. There are two options available:
    Description String General description that provides additional information about the current schedule page. This field is not necessary.
    Init function name String
    Note:
    This functionality is only used by Calendar type schedule pages.
    The init function name specifies the name of the JavaScript function to call inside the Client script function for calendar type schedule pages.
    HTML String
    Note:
    This functionality is only used by Calendar type schedule pages.
    Jelly parses the HTML field, which is a scriptable section. It then injects it into the display page prior to the rest of the calendar. It can be used to pass in variables from the server and define extra fields are necessary.
    Client script String The client script is a scriptable section that allows for configuring options of the schedule page display. The API is different depending on the schedule page view type.
    Server AJAX processor String
    Note:
    This functionality is only used by Calendar type schedule pages.
    The Server AJAX processor is specific to calendar type schedule pages that is used to return a set of schedule items and spans that display.