Custom alert message

The custom subject and body does not allow expression functions. You can only bring in alarm properties and tag values. In your case you will have to make an expression tag that uses the same function. You can use the new expression tag in your subject or body.