Manipulating Alert Variables

mercredi 11 mars 2015

Does anyone know if it's possible to manipulate the alert variables in an alert email template? For example, while ${error} is available to us, I have a use case where I'd like to parse out the information in that variable and reformat it to be more visually appealing. So I'm probably looking to use the split function and then to deal with different pieces of the split array differently. I was hoping to just try something like this:



${error}.split(":")[0].toString()



But it's being treated as text rather than code. I'm not sure if there's a syntax change I can make to get around this or if I'm out of luck.





I'm currently running 2.2.3 but will be looking to upgrade to 3.2 in a couple months. Not sure if the answer to this will be different based on my version or not...





Manipulating Alert Variables

0 commentaires:

Enregistrer un commentaire