Save a Background Script for future use
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-06-2018 12:31 PM
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

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-06-2018 03:23 PM
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

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-07-2018 05:59 AM
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.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-06-2018 10:33 PM
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

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-01-2019 05:45 AM
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.