Service Now Code Snippets for VS Code
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-30-2017 01:44 PM
Hey Guys,
I am new to service now scripting and want to make it easier. I created snippets based off of service now documentation. I use VS Code (Its Free!) to write my scripts.
To set up
- Download Visual Studio Code - Code Editing. Redefined
- Download and open the snippets file attached to this.
- Copy the contents.
- Open VS Code
- Navigate to File > Preferences > User Snippets
- Select Javascript from the dropdown
- Paste this over current (Unless you have existing snippets you created).
- Test in a new javascript file.
About This file
- All snippets prefixed with sn_
- Separated in main categories
- sn_query - Basic Queries
- sn_delete - Delete records
- sn_insert - Insert New records
- sn_addquery - Additional snippets to add query filters
- sn_alert - Different alerts for client and server side scripts
- sn_user - client and server snippets for the user object
- sn_form - snippets for the g_form object
- Easy to change any names by changing the prefix within the file.
Screenshot
This may not be perfect but can be a good place to start. Hope this helps someone.
Labels:
- Labels:
-
Scripting and Coding
- 3,569 Views
5 REPLIES 5
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-27-2022 09:24 AM
This is no longer listed in the store