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.

Custom properties, Component Alerts & HTML

We have been using Silverbacksys's examples as a template for our alerts (Thanks again - great contribution)

The issue I am having now is when we are setting up application or component based alerts, our custom property variables are not being displayed - we just get the variable code -  has anyone had this happen? 

  • We've had this in our environment - mostly when I copy & duplicate an alert.

    The only solution I've found is to delete and re-add the variables and re-save. 

  • When the alert variable is formatted incorrectly or the wrong type, it will display the variable code itself - shown in your example. Sometimes, it does when it fails to retrieve the values - check your db performance if you suspect this.

    You are on the right track to delete and re-create. One thing I have noticed is that the original post mentions component and application alerts. The alert variables will be formatted differently slightly for each alert type. See example below of node caption/custom property for an application alert and a component alert. 

    Application alert - Node Caption and custom property
    ${N=SwisEntity;M=Node.Caption}
    ${N=SwisEntity;M=Node.CustomProperties.propertyName}


    Component Alert - Node Caption and custom property
    ${N=SwisEntity;M=Application.Node.Caption}
    ${N=SwisEntity;M=Application.Node.CustomProperties.propertyName}


    If you are familiar with swql, some of the formatting makes sense. I have noticed that the formatting seems to be enforced starting sometime around npm12. 

    So when I copy an alert and assign or reuse the alert actions, I try to simulate to make sure I did not copy incorrectly formatted variables.