The Zurich release has arrived! Interested in new features and functionalities? Click here for more

Save a Background Script for future use

JahanzebB
Mega Guru

During a recent TechNow video, I noticed that one of the Developer Evangelists was able to call a Background script by entering a shortcut in the Scripts - Background window. For example 'tn1235=

This resulted in a saved background script being populated in the background script window. I have some saved background scripts that I need to copy over from a text editor manually. How do I save a background script for future use?

Thanks,

JB

8 REPLIES 8

You won't be able to call macro from background script.

Background scripts run on server and transaction runs in background.

Please check below for more details on background scripts.

 

http://www.servicenowelite.com/blog/2014/1/17/how-to-use-background-scripts

 

Regards,

Sachin

You've already recieved the answer but I tend to use fix scripts instead of background scripts since you get the syntax editor, macros and you can save them. You can also run them in the background if you have scripts that need to run for a longer period of time. In my experience it's really the best of both worlds.

Aman Gurram
Giga Expert

Explore Fix Scripts. They can be captured in the Update sets and they have the same functionality as Background Scripts.

You can save them and reuse them in Future

wollman2
Mega Guru

If you are a chrome user, I discovered Auto Text Expander that works well for quick Background scripts, [code] blocks in work logs, standard responses, 'lorem' filler text, etc. I use it to solve a lot of these issues. It even supports pasting the clipboard contents in a designated spot in the macro, and some dynamic fields like date and times. And the macros sync between computers.

I have nothing to monetarily gain from this app, but I really love it.