{"id":19504680,"url":"https://github.com/tools4everbv/helloid-task-sa-target-topdesk-incidentcreate","last_synced_at":"2025-08-16T15:10:09.789Z","repository":{"id":217468300,"uuid":"729260069","full_name":"Tools4everBV/HelloID-Task-SA-Target-TOPdesk-IncidentCreate","owner":"Tools4everBV","description":"TOPdesk - Incident create","archived":false,"fork":false,"pushed_at":"2024-01-16T10:51:30.000Z","size":42,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-06-19T10:52:01.387Z","etag":null,"topics":["delegated-form","powershell","product","service-automation","task","topdesk"],"latest_commit_sha":null,"homepage":"","language":"PowerShell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Tools4everBV.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-12-08T18:39:39.000Z","updated_at":"2024-01-09T09:37:03.000Z","dependencies_parsed_at":null,"dependency_job_id":"61c0ccde-5e1a-49c6-a7db-942814d8fc54","html_url":"https://github.com/Tools4everBV/HelloID-Task-SA-Target-TOPdesk-IncidentCreate","commit_stats":null,"previous_names":["tools4everbv/helloid-task-sa-target-topdesk-incidentcreate"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/Tools4everBV/HelloID-Task-SA-Target-TOPdesk-IncidentCreate","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tools4everBV%2FHelloID-Task-SA-Target-TOPdesk-IncidentCreate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tools4everBV%2FHelloID-Task-SA-Target-TOPdesk-IncidentCreate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tools4everBV%2FHelloID-Task-SA-Target-TOPdesk-IncidentCreate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tools4everBV%2FHelloID-Task-SA-Target-TOPdesk-IncidentCreate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Tools4everBV","download_url":"https://codeload.github.com/Tools4everBV/HelloID-Task-SA-Target-TOPdesk-IncidentCreate/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tools4everBV%2FHelloID-Task-SA-Target-TOPdesk-IncidentCreate/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270728150,"owners_count":24635151,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-16T02:00:11.002Z","response_time":91,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["delegated-form","powershell","product","service-automation","task","topdesk"],"created_at":"2024-11-10T22:26:44.555Z","updated_at":"2025-08-16T15:10:09.745Z","avatar_url":"https://github.com/Tools4everBV.png","language":"PowerShell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# HelloID-Task-SA-Target-TOPdesk-IncidentCreate\n\n## Prerequisites\n\n- [ ] TOPdesk API Username and Key\n- [ ] User-defined variables: `topdeskBaseUrl`, `topdeskApiUsername` and `topdeskApiSecret` created in your HelloID portal.\n\n## Description\n\nThis code snippet will create an incident within TOPdesk and executes the following tasks:\n\n1. Define a hash table `$formObject`. The keys of the hash table represent the properties necessary to create an incident within `TOPdesk`, while the values represent the values entered in the form.\n\n\u003e To view an example of the form output, please refer to the JSON code pasted below.\n\n```json\n{\n  \"callerLookup\": {\n      \"id\": \"40dd8b13-c8d2-4376-b21e-38ba6439ca38\"\n  },\n  \"briefDescription\": \"Incident example\",\n  \"request\": \"This an example of an incident\",\n  \"action\": \"Please act on this incident example accordingly\",\n  \"operator\": {\n      \"id\": \"edaba930-6315-4b5b-b98c-c50bff863cc8\"\n  },\n  \"operatorGroup\": {\n      \"id\": \"2212b3e5-d6dd-4618-a51f-4c4536d235d8\"\n  },\n  \"category\": {\n      \"id\": \"05d3c08e-436c-468a-9fe6-5b3a4ddb156c\"\n  },\n  \"subcategory\": {\n      \"id\": \"17b16491-2c1d-419a-ac6e-a43e73f9cd75\"\n  },\n  \"callType\": {\n      \"id\": \"04b678a6-791e-4662-9bc8-97573555f15e\"\n  },\n  \"impact\": {\n      \"id\": \"047e6eaf-3ef3-5b0f-9e71-0463a0a96d92\"\n  },\n  \"urgency\": {\n      \"id\": \"163e40c1-1907-5766-b35b-31fef04f0910\"\n  },\n  \"priority\": {\n      \"id\": \"f0a5d7d2-d5b0-54fc-a8fe-9e6e1ac09715\"\n  },\n  \"duration\": {\n    \"id\": \"b0abc434-ebe0-58c4-851d-a7bec0fbbb7a\"\n  },\n  \"entryType\": {\n      \"id\": \"32d349bb-c1f5-416a-8314-0c24d328b325\"\n  },\n  \"processingStatus\": {\n      \"id\": \"70b2967d-e248-4ff9-a632-ec044410d5a6\"\n  },\n  \"branch\": {\n      \"id\": \"1fe19024-d652-46ec-b080-eec3737a3d7a\"\n  }\n}\n```\n\n\u003e :exclamation: It is important to note that the names of your form fields might differ. Ensure that the `$formObject` hash table is appropriately adjusted to match your form fields.\n\u003e [See the TOPdesk API Docs page](https://developers.topdesk.com/explorer/?page=incident#/incident/post_incidents)\n\n2. Creates authorization headers using the provided API key and secret.\n\n3. Create an incident using the: `Invoke-RestMethod` cmdlet. The hash table called: `$formObject` is passed to the body of the: `Invoke-RestMethod` cmdlet as a JSON object.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftools4everbv%2Fhelloid-task-sa-target-topdesk-incidentcreate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftools4everbv%2Fhelloid-task-sa-target-topdesk-incidentcreate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftools4everbv%2Fhelloid-task-sa-target-topdesk-incidentcreate/lists"}