https://github.com/tools4everbv/helloid-task-sa-target-servicenow-incidentcreate
ServiceNow - Incident create
https://github.com/tools4everbv/helloid-task-sa-target-servicenow-incidentcreate
delegated-form powershell product service-automation servicenow task
Last synced: 15 days ago
JSON representation
ServiceNow - Incident create
- Host: GitHub
- URL: https://github.com/tools4everbv/helloid-task-sa-target-servicenow-incidentcreate
- Owner: Tools4everBV
- Created: 2023-08-08T07:32:10.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2025-02-06T15:21:49.000Z (over 1 year ago)
- Last Synced: 2025-02-25T22:11:26.029Z (over 1 year ago)
- Topics: delegated-form, powershell, product, service-automation, servicenow, task
- Language: PowerShell
- Homepage:
- Size: 14.6 KB
- Stars: 0
- Watchers: 6
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# HelloID-Task-SA-Target-ServiceNow-IncidentCreate
## Prerequisites
Before using this snippet, verify you've met with the following requirements:
- [ ] User defined variables: `serviceNowBaseUrl`, `serviceNowUserName` and `serviceNowPassword` created in your HelloID portal.
## Description
This code snippet executes the following tasks:
1. Define a hash table `$formObject`. The keys of the hash table represent the properties to create an incident, while the values represent the values entered in the form. [See the ServiceNow API documentation](https://developer.servicenow.com/dev.do#!/reference/api/sandiego/rest/c_TableAPI#table-POST)
> To view an example of the form output, please refer to the JSON code pasted below.
```json
{
"UserIdentity": "johndoe",
"urgency": "1",
"description": "Example inident",
"short_description": "Example"
}
```
> :exclamation: It is important to note that the names of your form fields might differ. Ensure that the `$formObject` hashtable is appropriately adjusted to match your form fields.
2. Verify that a `sys_user` with `caller_id` _johndoe_ exists.
3. If the caller exist, create an incident.