This discussion has been locked. The information referenced herein may be inaccurate due to age, software updates, or external references.
You can no longer post new replies to this discussion. If you have a similar question you can start a new discussion in this forum.

PowerShell script to modify an APPLICATION Custom Property via Rest API/JSON

I created an application custom property (text) script that allows me to populate it with text of my choosing. The script is basic enough that it can be worked into any existing script.

1.png

I can then use this as an alert variable to populate info into an alert action. The variable in this case is ${N=SwisEntity;M=CustomProperties.CustomAlertNotes}

1.png

The script requires that you pass in the follow alert variables:

  • ${N=SwisEntity;M=Node.NodeID}
  • ${N=SwisEntity;M=ApplicationID}

I also have an example of how to change a NODE custom property via Rest API.

PowerShell script to modify a NODE Custom Property via Rest API/JSON

SWIS_Rest_API_Modify_CP_Application.ps1