2 Replies Latest reply on Nov 9, 2016 10:59 AM by johnny ringo

    How to set select a custom property field using the SDK

    johnny ringo


      I am trying to leverage the example PS script to automate the setting of custom properties of my environment however I have a question about the example.  Here is the example:


      $nodeId=8 # NodeID of a node which custom properties you want to change



      # prepare a custom property value


      $customProps = @{


        Comments="Custom comment";




      build the node URI


      $uri = "swis://localhost/Orion/Orion.Nodes/NodeID=$nodeId/CustomProperties";


      # set the custom property

      Set-SwisObject $swis -Uri $uri -Properties $customProps



      However this example doesn't illustrate how to select the custom property column you want to set.  How would I do this?  Thank you!!



      Reference: OrionSDK/CRUD.SettingCustomProperty.ps1 at PowerOrion · solarwinds/OrionSDK · GitHub