This simple little Blueprint shows how to create a incident in ServiceNow using ServiceNow API.
- Onify Hub v2
- Onify Flow license
- Camunda Modeler 4.4 or later
- Curl command (maybe)
- ServiceNow (dah :-)
- 3 x Settings
- 1 x Flows
- 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
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\" }"
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\" ] }"
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\" }"
- Open
create-incident-servicenow.bpmn
in Camunda Modeler - Customize the flow (optional)
- Click
Deploy current diagram
and follow the steps
To test and run the flow, click Start current diagram
- Community/forum: https://support.onify.co/discuss
- Documentation: https://support.onify.co/docs
- Support and SLA: https://support.onify.co/docs/get-support
This project is licensed under the MIT License - see the LICENSE file for details.