---
sourceDocument: Xanadu ServiceNow AI Platform Administration
sourceDocumentLink: https://servicenow-prod.fluidtopics.net/r/xanadu/platform-administration

 Release :

    - xanadu

ft:locale :

    - en-US

ft:publication_title :

    - Xanadu ServiceNow AI Platform Administration

ft:clusterId :

    - platadm

bundleId :

    - platadm

workflow :

    - Platform


---

# Create a business calendar span using a Script includes

# Create a business calendar span using a Script includes {#ariaid-title1}

* Release version: Xanadu
* 
* Updated July 31, 2025
* 
* ![](https://www.servicenow.com/docs/portal-asset/ico-clock) 1 minute to read

You can generate business calendar spans and their names using the Script includes titled BusinessCalendarGeneratorUtil. The calendars you create are accessible across both global
and scoped applications.

## Before you begin

Role required: admin

## Procedure

1. Access the BusinessCalendarGeneratorUtil script.
   1. Navigate to All and search `Script Includes`.
   2. Select the `Script Includes` option listed under System UI.
   3. Type <kbd class="ph userinput">BusinessCalendarGeneratorUtil</kbd> in the search bar near the top of the form, and press enter or return on your keyboard.
   4. Select `BusinessCalendarGeneratorUtil`.
   {#create-a-business-calendar-span-using-a-script-includes__substeps_x5q_bb5_wbc}
2. Set options such as the scope of the script and who can call it (Client callable or Mobile callable), whether it's Sandbox enabled, and the description of the script, at the beginning of the form.
3. Modify the description of the script as needed.
4. Enter the necessary values where you see placeholders for <kbd class="ph userinput">calendarId</kbd>, <kbd class="ph userinput">spanName</kbd>, <kbd class="ph userinput">start</kbd>, <kbd class="ph userinput">end</kbd>, <kbd class="ph userinput">longName</kbd>, and <kbd class="ph userinput">shortName</kbd>.  
5. Select Update to save changes.

## Result

A business calendar span script includes is created. The year is appended to the beginning of the display name from the <kbd class="ph userinput">longName</kbd> field.
**Related topics**   

* [Script includes](https://www.servicenow.com/docs/access?context=c_ScriptIncludes&version=xanadu&pubname=xanadu-api-reference&ft:locale=en-US)

