https://github.com/tools4everbv/helloid-task-sa-source-topdesk-lookup
TOPdesk - Lookup field in Topdesk
https://github.com/tools4everbv/helloid-task-sa-source-topdesk-lookup
data-source powershell service-automation topdesk
Last synced: over 1 year ago
JSON representation
TOPdesk - Lookup field in Topdesk
- Host: GitHub
- URL: https://github.com/tools4everbv/helloid-task-sa-source-topdesk-lookup
- Owner: Tools4everBV
- Created: 2024-02-12T15:06:50.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-02-12T15:09:50.000Z (over 2 years ago)
- Last Synced: 2025-01-08T10:45:04.617Z (over 1 year ago)
- Topics: data-source, powershell, service-automation, topdesk
- Language: PowerShell
- Homepage:
- Size: 12.7 KB
- Stars: 0
- Watchers: 5
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# HelloID-Task-SA-Source-TOPdesk-Lookup
## Prerequisites
- [ ] User-defined variable `topdeskApiSecret` created in your HelloID portal. Containing the Topdesk Api Secret.
- [ ] User-defined variable `topdeskApiUsername` created in your HelloID portal. Containing the Topdesk Api Username.
- [ ] User-defined variable `topdeskBaseUrl` created in your HelloID portal. Containing the Topdesk URL, for example: `https://.topdesk.net`
## Description
This code snippet executes the following tasks:
1. Define a search value `$searchValue` based on the search parameter `$datasource.searchValue`
2. Define `$endPoint` based on the lookup field, for example `/tas/api/branches`
3. Define `$searchAttribute` based on the attribute that is used to search, for example `name`
4. Creating authorization headers
5. `GET` defined lookup field `$endPoint` where `$searchAttribute` equals `$searchValue`
> For more information about Topdesk `endPoints` and `searchAttributes`
> https://developers.topdesk.com/explorer/?page=supporting-files#/Branches/retrieveBranches
6. Return a hash table for each Topdesk lookupvalue using the `Write-Output` cmdlet.