Comments not flowing to 3rd party side' in proper format

PavanKalyanD
Kilo Contributor

Hi All,

 

I am facing an issue with integration while we are sending comments to 3rd party vendor whatever the format we are sending those comments were showing their end in single line and no proper spaces and no line breaks. We are flow designer 

2 REPLIES 2

Shruti
Mega Sage
Mega Sage

Hi,

Try this

var grRecRec = new GlideRecord('incident');
if(grRec.get('<sys_id_of_incident>')){
var comment = grRec.comments.getJournalEntry(1);
gs.info(comment.match(/\n.*/gm).join('').replace(/^\s*\n/gm, ""));
}

Ankur Bawiskar
Tera Patron
Tera Patron

@PavanKalyanD 

what they expect from ServiceNow and what are you sending?

share some details screenshots etc

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader