Skip to content
This repository has been archived by the owner on Jan 13, 2019. It is now read-only.
/ servicenow-plugin Public archive

A plugin for editing ServiceNow scripts locally with Idea IDE's

License

Notifications You must be signed in to change notification settings

0x111/servicenow-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

servicenow-plugin

Maintainers note: This project is not maintained anymore. For similar functionality please refer to this project: https://sn-edit.com

The plugin exists to simplify the development process while you edit Service Now scripts. With this plugin, you will be able to download, edit and upload the script back to your instance and then test it afterwards. The plugin is avaliable in the Jetbrains plugin repository too for simple installation Service Now Plugin

Installation

The Installation is very simple. You can install the plugin in any editor of your choice from the Jetbrains family. Although I think WebStorm is the best for editing javascript, but the plugin should work with IntelliJ and others too. After the installation, you will see the new options in the Tools menu of your IDE.

As you can see, you have three options. Either to Download or Upload a script or modify the config file. If your config file does not exist, then the plugin will detect it and ask you to fill out the form after you initiate a Download or Upload of a script.

Config File

The Config file consists of three options for now.

  • domain (dev9770870.service-now.com) // Just the domain name without the / at the end or https:// at the beginning
  • username (admin)
  • password (your password)

If you fill out the config file with invalid information, the plugin will not work and display some kind of error message to inform you about this problem.

Usage

Download

The usage is simple, like you could see before, there are key shortcuts avaliable to the various tasks, so you do not need to open the Tools menu all the time. If you would like to display the Download form, you use the Ctrl+Alt+G shortcut and the Download form will be displayed right away.

There is an example for filling out the input field, but to be sure.

The first value is the name of the table, which is sys_script (a.k.a. system script, a.k.a. business rule).

The second value is the field name, which is in most of the cases script.

The third value is the sys_id, which is the unique identifier for the given script. These values are separated with the : delimiter. If you fill these out correctly, you should be able to download the script successfully.

Upload

After you edit your previously downloaded script, you should be ready to upload it, to do so, you can use the Ctrl+Alt+U shortcut. If you have your script open in the web editor of Service Now, then you should be able to see the changes, after the script is uploaded.

Notes

I plan to do some more improvements, like code autocomplete and others. I am still learning about the system of the plugin development. If there is something to be improved (which I am sure there is), then please make a pull request or raise an issue. If you have new feature suggestions then please create an issue for that.

The project is licensed under the MIT License.

Dependencies

The plugin has various dependencies which I will always include in the lib folder of this project. After you clone the repository, you need to add them manually into your sources.

About

A plugin for editing ServiceNow scripts locally with Idea IDE's

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages