ISHRemote
ISHRemote copied to clipboard
Extend cmdlet Set-IshLovValue to update properties one-by-one
Originally ISHRemote was a thin layer on top of the API, so implementation of Set-IshLovValue was over IshSession.ListOfValues25.UpdateValue(LovId, LovValueId, Label, Description, Active); in turn forcing all properties as mandatory on the cmdlet.
Since the introduction of Active/Inactive in the user interfaces since 14SP1/14.0.1 the toggling of Active to Inactive is more important.
Best implementation is
- [ ] Make parameters optional, also extra Pester tests
- [ ] When not all parameters are specified, add a
Getoperation to default the missing properties in theUpdateValueAPI call
Other considered options are
- Extend Set-IshMetadataField to overwrite “fields” of LovValue objects… Get-IshLovValue … | Set-IshMetadataField -Active $False | Set-IshLovValue
- Or await a better API call :-)