logo

NJP

Discovering a Previously Executed Background Scripts

Import · Jul 04, 2023 · article

We've all been there. You access a background script, diligently making alterations as you debug. Then, out of the blue, you mistakenly refresh the page and watch your entire work vanish into thin air.

Losing an hour or even more of your precious time can be frustrating. Thankfully, there exists a method to track down that elusive script you were diligently crafting!

Step 1 - Accessing the Table

To begin the process, follow these steps:

  1. Open your Application Navigator.
  2. Enter "sys_script_execution_history.list" in the search bar.
  3. Press Enter or click on the search icon to proceed.

PrasadDhumal_0-1688452311756.png

Step 2 - Filter and Locate Your Script

  1. Assess the size of your instance and determine if filtering is necessary.
  2. Filter the list by the 'Executed by' column and select your own name.

Step 3 - You're Done!

Once you have identified the script in the filtered list, you have successfully found your desired script. Here's what you can do next:

Load the script back into a background script for further modifications or debugging.

Utilize the script for any other purposes or tasks you had in mind.

Congratulations on successfully retrieving your script and completing the process!

View original source

https://www.servicenow.com/community/developer-articles/discovering-a-previously-executed-background-scripts/ta-p/2604217