Run background scripts using VS Code

  • Rversion finale: Australia
  • Mis à jour 12 mars 2026
  • 1 minute de lecture
  • Run scripts from your ServiceNow instance in VS Code using the ServiceNow Extensions for VS Code.

    Avant de commencer

    Role required: admin

    Procédure

    1. While writing the script in the VS Code IDE, select the script in the text file and right-click on the script.
    2. Select Run Background Script- Current or Run Background Script- Global from the context menu.
      The background scripts runner tab opens in VS Code and shows the location where the script is executed in the server.