Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Prasad Dhumal
Mega Sage

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!

Comments
Shriram Joshi
Tera Guru
Tera Guru

@Prasad Dhumal  - This is very useful, thanks for sharing. 

Prasanjeet Behe
Tera Explorer

Very Helpful @Prasad Dhumal 

Version history
Last update:
‎07-03-2023 11:34 PM
Updated by:
Contributors