- 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://<yourcompany>.topdesk.net
This code snippet executes the following tasks:
- Define a search value
$searchValue
based on the search parameter$datasource.searchValue
- Define
$endPoint
based on the lookup field, for example/tas/api/branches
- Define
$searchAttribute
based on the attribute that is used to search, for examplename
- Creating authorization headers
GET
defined lookup field$endPoint
where$searchAttribute
equals$searchValue
For more information about Topdesk
endPoints
andsearchAttributes
https://developers.topdesk.com/explorer/?page=supporting-files#/Branches/retrieveBranches
- Return a hash table for each Topdesk lookupvalue using the
Write-Output
cmdlet.