Insert line breaks in the "Notes" field of an alert to AP Alert Manager
search cancel

Insert line breaks in the "Notes" field of an alert to AP Alert Manager

book

Article ID: 187098

calendar_today

Updated On:

Products

Automation Point

Issue/Introduction

When sending an alert to the  Automation Point Alert Manager the Notes field appears as a sequence of characters without any line breaks. 
Using the following REXX code on OPS for testing purposes:
DESC = " Alert from OPS" date(e) || ' time:' time()
notes.1 = "Alert notes line"                       
notes.2 = "Alert notes line"                       
notes.3 = "Alert notes line"                       
notes.4 = "Alert notes line"                       
notes   = ''                                       
do i = 1 to 4                                      
NOTES = notes || notes.i ' 'i || x2c('0D0A')       
end                                                
ADDRESS AP "ALERT ",                               
           "SYSTEM(XXX2677)",                     
           "RESOURCE(TESTE)",                      
           "DESCRIPTION('"DESC"')",                
           " NOTE('"NOTES"')",                     
           " SEVERITY(WARNING)",                   
           " CUSTOM(message_id("i"))",             
           " AGENT(AGNT)"                          
SAY RC                                                                                      

The Notes field at the AP side appears as a continuous string of characters.

Environment

 

 

Resolution

Line breaks can be added by inserting the string "\n"
For example: 

NOTES = notes || notes.i ' 'i || '\n'