Deleted custom code location#4
Conversation
sjoerdvandijkt4e
commented
Jun 22, 2026
- Location information and custom_fields deleted from code (this was custom made)
- Basic connector is now usable without extra adjustments to the code
rhouthuijzen
left a comment
There was a problem hiding this comment.
Zou je naar de feedback kunnen kijken. Ook nog even de README nalopen m.b.t. custom fields. Mogelijk de tekst iets finetunen met het is mogelijk om een custom veld te gebruiken zie voorbeeld in de code
| try { | ||
| $splatGetCostcentres = @{ | ||
| Url = "$($actionContext.Configuration.BaseUrl)/api2/costcentres?name=$($actionContext.Data.mapping.costCenterId)" | ||
| Url = "$($actionContext.Configuration.BaseUrl)/api2/costcentres?name=$($actionContext.Data.mapping.costCenterId)&name=$($actionContext.Data.mapping.costCenterId)" |
There was a problem hiding this comment.
Als ik de code goed leest doe je nu twee keer exact dezelfde name meegeven
name=$($actionContext.Data.mapping.costCenterId)&
name=$($actionContext.Data.mapping.costCenterId)
Denk dat deze wijziging ongedaan gemaakt kan worden
| try { | ||
| $splatGetDepartments = @{ | ||
| Url = "$($actionContext.Configuration.BaseUrl)/api2/departments?name=$($actionContext.Data.mapping.departmentId)" | ||
| Url = "$($actionContext.Configuration.BaseUrl)/api2/departments?name=$($actionContext.Data.mapping.departmentId)&name=$($actionContext.Data.mapping.departmentId)" |
There was a problem hiding this comment.
Als ik de code goed leest doe je nu twee keer exact dezelfde name meegeven
name=$($actionContext.Data.mapping.departmentId)&
name=$($actionContext.Data.mapping.departmentId)
Denk dat deze wijziging ongedaan gemaakt kan worden
| # else { | ||
| # Write-Information "LocationId (name) is empty lookup skiped" | ||
| # } | ||
|
|
There was a problem hiding this comment.
Ik zou het voorbeeld van custom_fields er ook inlaten. Desnoods met een extra note. Want nu haalt je ui gecommentarieerde code alleen de locatie op en wordt het niet aan action context data toegevoegd
| # PowerShell V2 | ||
| ################################################# | ||
| # | ||
| # Version: 1.2.0 |
There was a problem hiding this comment.
Terugdraaien. # PowerShell V2 zonder versie is de template
| # HelloID-Conn-Prov-Target-Facilitor-Disable | ||
| # PowerShell V2 | ||
| # | ||
| # Version: 1.2.0 |
There was a problem hiding this comment.
Terugdraaien. # PowerShell V2 zonder versie is de template
| # HelloID-Conn-Prov-Target-Facilitor-Delete | ||
| # PowerShell V2 | ||
| # | ||
| # Version: 1.2.0 |
There was a problem hiding this comment.
Terugdraaien. # PowerShell V2 zonder versie is de template
| try { | ||
| $splatGetCostcentres = @{ | ||
| Url = "$($actionContext.Configuration.BaseUrl)/api2/costcentres?name=$($actionContext.Data.mapping.costCenterId)" | ||
| Url = "$($actionContext.Configuration.BaseUrl)/api2/costcentres?name=$($actionContext.Data.mapping.costCenterId)&name=$($actionContext.Data.mapping.costCenterId)" |
There was a problem hiding this comment.
Zie opm update script
| try { | ||
| $splatGetDepartments = @{ | ||
| Url = "$($actionContext.Configuration.BaseUrl)/api2/departments?name=$($actionContext.Data.mapping.departmentId)" | ||
| Url = "$($actionContext.Configuration.BaseUrl)/api2/departments?name=$($actionContext.Data.mapping.departmentId)&name=$($actionContext.Data.mapping.departmentId)" |
There was a problem hiding this comment.
Zie opm update script
| # SearchProperty = 'name' | ||
| # } | ||
| # $location = Get-FacilitorResource @splatGetLocations | ||
|
|
There was a problem hiding this comment.
Zie opm update script
| Write-Information 'Creating and correlating Facilitor account' | ||
| $splatCreateUser = @{ | ||
| Uri = "$($actionContext.Configuration.BaseUrl)/api2/persons?inlcude=custom_fields" | ||
| Uri = "$($actionContext.Configuration.BaseUrl)/api2/persons?include=custom_fields" |
There was a problem hiding this comment.
Include=custom_fields maakt dit nog uit dat we dit meegeven? Als het geen problemen gaf gewoon laten staan