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.
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}
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