Comments not flowing to 3rd party side' in proper format
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-04-2025 11:12 AM
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
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-04-2025 10:42 PM
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, ""));
}
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-04-2025 10:49 PM
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
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader