I’ve known that a Run Script in a workflow cannot use the trim() method of JavaScript, so I’ve created a small function. I would like to use this function in many workflows. Therefore, I’ve created a functions.js file and imported it into the Run Script as a Script file. However, I do not know how to use the function in the Run Script. Could someone tell me how to do it?
You can use the trim() function in Javascript in Workflow. Just make sure that the language you select in the Run Script plugin is Enhanced JScript and not JScript