I'm attempting to create a custom property that will act as a counter.
My goal is to have it increase by one each time an alert is triggered.
Then I can use that unique value in emails to our ticketing system so delayed and reset action emails will update the tickets automatically with the new information.
I'm running into an issue when trying to use the Change Custom Property action to perform the increase.
If I use a Custom Property that is an Integer Number, it fails with the following error (note: the first '1' is actually ${N=SwisEntity;M=CustomProperties.NodeDown_Count_Node} )

If I use a custom property that is in text format the field updates to the formula, rather than a number like the below examples:
${N=SWQL;M=Select SUM(1+1)}
${N=SWQL;M=SELECT SUM(NodeDown_Count_Node+1)FROM Orion.NodesCustomPropertiesWhere NodeID = ${N=SwisEntity;M=CustomProperties.NodeID}}
I've tried looking for examples online and I realized that I'm probably missing something simple due to my lack of experience with SQL and SolarWinds that is so obvious most people wouldn't need to ask about.
Please let me know if I've explained my issue poorly and I would be happy to go into more detail.
If you could help shed some light on this issue I would appreciate it!