Convertigo Public Knowledge base
How to call a Function in a JavaScript file (*.js) that has been added into the Project path?
This is done using the include statement.
Create a folder in your project called libjs
Place in this folder a file called lib.js
in this file :
var testfct = function (data) { log.warn("test" + data) }
Create a Sequence JS Step:
include("jslib/lib.js") testfct("mydata")
When you run the sequence the testfct function will be called and the log will be displayed.
Â
(c) Convertigo 2023 https://www.convertigo.com