Home General Discussion

Notification template formatting question

Kathy_HustKathy_Hust Customer IT Monkey ✭
Is there a way to format the description of the ticket in the notification template so that it is not all jumbled together but looks like it does in the Action log view?  See below examples:
My Notification template:


Action Log View:

Any help is greatly appreciated.

Best Answer

Answers

  • Jeff_LangJeff_Lang Customer Ninja IT Monkey ✭✭✭✭
    We got around this by extending the IR/SR/CR/MA classes with what we called DescriptionEmailVersion, any time the actual description gets updated, we have a sql trigger to copy it to our email version of the field called DescriptionEmailVersion, as it copies it, it also changes any CR/LF's into a <br> so it is formatted for a html email. we then put the DescriptionEmailVersion field onto the notification templates.

    Not sure how anyone else handles this, but we found it the easiest way and avoids timing issues with back end workflows as the SQL trigger is immediate before any workflows are run
  • Kathy_HustKathy_Hust Customer IT Monkey ✭
    @Henrik_Nielse that did the trick for me too. Thank you so much!
  • Mikkel_MadsenMikkel_Madsen Customer Advanced IT Monkey ✭✭✭
    If you are using CSS to style it you could also take a look at the white-space attribute: https://www.w3schools.com/cssref/pr_text_white-space.asp 
Sign In or Register to comment.