Help with creating alert containing a multiple-line message

mcuff
Tera Contributor

I am using the API to create Alerts using https://xxxxxx.service-now.com/api/global/em/jsonv2 to ingest events from our old monitoring system. The old system had two description fields, brieftext (single line) and fulltext (multi-line). What I'm hoping somebody can advice on is, the best way to get both fields into a Servicenow alert.  I've found I can do this by setting the description field in the call to "<brieftext>\n<fulltext>\n", e.g. "Line1\nLine2\nLine3\nLine4\n".  However the downside to this is, as per yellow highlighted section on the screenshot the lines run together at the top of the screen.  Any ideas how I might stop this? I am using Washington release.

 

alert.jpg

 

Thanks

Mike

 

1 REPLY 1

Community Alums
Not applicable

Hi Mike,

you can't I think - this is sinle line string field so no both UI16 and workspace its not taken into account (new lines). I tested it and it works if I use multi line , but dont do this for short description.