homotechsual / NinjaOne

MIT License
85 stars 25 forks source link

Clearing a Custom Field #29

Closed xasz closed 9 months ago

xasz commented 9 months ago

Hello,

i am struggle to clear a custom field. I set set a new value no problem, but clearing seems to be an issue. Setting "" or $null will not change the ninja field. There is no error and nothing happens.

To replicate - Create a custom field of type string and set a value - now try something like: Set-NinjaOneDeviceCustomFields -deviceId 4210 -deviceCustomFields @{"nameOfField" = ""}

xasz commented 9 months ago

Solved by reconnecting - no idea what was wrong.