ServiceNow work notes (Modified JavaScript)

ServiceNow work notes (Modified JavaScript)

Description: Facing an issue while updating multiple records in ServiceNow work notes through modified JavaScript.



Quote

var input = "javaw - 1145.05 MB | MsMpEng - 231.97 MB | GoTo.Resolve.PatchManagement.Client - 207.3 MB | GoTo.Resolve.Antivirus.App - 201.64 MB | explorer - 192.42 MB";

var output = input.replace(/\s*\|\s*/g, "\\n"); 


Refer to the above code for using multiple values in a single line to pass the output value directly to the work_notes field in the plugin step.

      Links to better reach 

            Bot Store

             EPD