Skip to content

Latest commit

 

History

History
73 lines (47 loc) · 2.89 KB

File metadata and controls

73 lines (47 loc) · 2.89 KB

Onify Blueprints

Project Status: WIP – Initial development is in progress, but there has not yet been a stable, usable release suitable for the public. Test suite

Onify Blueprint: Create incident in ServiceNow

This simple little Blueprint shows how to create a incident in ServiceNow using ServiceNow API.

Onify Blueprint: Create incident in ServiceNow

Requirements

  • Onify Hub v2
  • Onify Flow license
  • Camunda Modeler 4.4 or later
  • Curl command (maybe)
  • ServiceNow (dah :-)

Included

  • 3 x Settings
  • 1 x Flows

Setup

Settings

  • Replace <ONIFY-HUB-API-URL> with Onify Hub API url
  • Replace <AUTH-TOKEN> with Onify Hub API auth token
  • Replace <SERVICENOW-INSTANCE> with ServiceNow instance url (https://devXXXXXX.service-now.com)
  • Replace <SERVICENOW-USERNAME> with ServiceNow instance username
  • Replace <SERVICENOW-PASSWORD> with ServiceNow instance password

Add setting for ServiceNow instance

curl -X POST "<ONIFY-HUB-API-URL>/api/v2/admin/config/settings?refresh=false" -H "accept: application/json" -H "authorization: <AUTH-TOKEN>" -H "Content-Type: application/json" -d "{ \"key\": \"_servicenow_url\", \"name\": \"ServiceNow URL\", \"value\": \"<SERVICENOW-INSTANCE>/api/now\", \"type\": \"string\", \"tag\": [ \"servicenow\" ], \"category\": \"custom\" }"

Add setting for ServiceNow username

curl -X POST "<ONIFY-HUB-API-URL>/api/v2/admin/config/settings?refresh=false" -H "accept: application/json" -H "authorization: <AUTH-TOKEN>" -H "Content-Type: application/json" -d "{ \"key\": \"_servicenow_username\", \"name\": \"ServiceNow username\", \"value\": \"<SERVICENOW-USERNAME>\", \"type\": \"string\", \"tag\": [ \"servicenow\" ] }"

Add setting for ServiceNow password

curl -X POST "<ONIFY-HUB-API-URL>/api/v2/admin/config/settings?refresh=false" -H "accept: application/json" -H "authorization: <AUTH-TOKEN>" -H "Content-Type: application/json" -d " { \"key\": \"_servicenow_password\", \"name\": \"ServiceNow password\", \"value\": \"<SERVICENOW-PASSWORD>/api/now\", \"type\": \"password\", \"tag\": [ \"servicenow\" ], \"category\": \"custom\" }"

Flows

Deploy

  1. Open create-incident-servicenow.bpmn in Camunda Modeler
  2. Customize the flow (optional)
  3. Click Deploy current diagram and follow the steps

Run

To test and run the flow, click Start current diagram

Support

License

This project is licensed under the MIT License - see the LICENSE file for details.