Create a business calendar span using a Script includes

  • Rversion finale: Australia
  • Mis à jour 12 mars 2026
  • 1 minute de lecture
  • 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.

    Avant de commencer

    Role required: admin

    Procédure

    1. Access the BusinessCalendarGeneratorUtil script in Build Tools 1 (BT1).
      1. Navigate to All and search Script Includes.
      2. Select the Script Includes option listed under System UI.
      3. Type TinymceConfigScript in the search bar near the top of the form, and press enter or return on your keyboard.
      4. Select TinymceConfigScript.
    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 calendarId, spanName, start, end, longName, and shortName.
      Form the Script includes that it titled, BusinessCalendarGeneratorUtil
    5. Select Update to save changes.

    Résultats

    A business calendar span is created. The year is appended to the beginning of the display name from the longName field.