Skip to content
This repository has been archived by the owner on Nov 2, 2022. It is now read-only.

karastoyanov/servicenow-devinstance-project

Repository files navigation

⚠️ ⚠️ ⚠️ The entire project was moved to snow-environment.github.io as Web Application

ServiceNow Task Verifier

Table of Contents
  1. About The Project
  2. Built With
  3. Usage
  4. Contributing
  5. License
  6. Contact

About The Project ℹ️

ServiceNow Task Verifier gives the opportunity to verify premade tasks on ServiceNow Instance. Different assigments can be coded using PySNC API, which connects to the SNOW Instance and sends queries to the CMDB. Queries can be made to check for specific tables, fields and records and their values.

Built With 🔨


⚠️ To install all the required python libraries you can run
pip install -r REQUIREMENTS

Usage ❓

  • After you open the apllication, the first screen you will see is the login form. You should provide the credentials for your ServiceNow instance. To get the credentials open the Developer Portal and login with your account. Then, go to the upper right corner, open your profile and click on "Manage instance password". You should be seeing a similar window

  • ServiceNow Instance Name: Only the instance name in format devXXXXXX
  • ServiceNow User Name: Your instance username
  • ServiceNow Password: Your instance user password
  • After you introduce the credentials press the "Login" button. If the credentials are correct, you will sign in the application succsefully. In case that credentials are incorrect, a prompt message will appeat. Keep in mind that to be able to log in, your ServiceNow instance should be running(awake).

  • On the main application window you will find buttons for each of the tasks. Each task have two separate buttons, one to verify the task and the second one to review the task assigment. The user DOESN'T have the possibility to change any of the CMDB values or objects through the application. The ServiceNow Task Verifier would give only the chance to verify if specific table or records is existing.

  • If all the assigments for the specific tasks are done correctly on the SNOW Instance, green check mark incon will apear next to the Verify button, in case that the assigment is not done properly, a red X mark icon will appear.

Contributing 💻

  • If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with tags "BUG" for fixing a issue or "REQ" for improving the code. Don't forget to give the project a star! Thanks again!
  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request
  • Using PySNC API you could easly create queries to the CMDB and check for specific table, field or record. For more information check Built With section of this file. Simple example of running CMDB query to find "Billie Cowley" user in sys_user table
from pysnc import ServiceNowClient

client = ServiceNowClient('snow instance url address', ('user', 'password'))

gr = client.GlideRecord('sys_user')
gr.get('user_name')
gr.query()
for r in gr:
 if r == 'billie.cowley':
 print(r)
 break
  • For easy of use you can get a specific table field lable from accessing the XML file describing the form. To do that, right click on the Form header and choose 'Show XML'

License 📜

  • Distributed under the GPL-3.0 license. See LICENSE for more information.

Contact 📫