Open the script record where we want to add parameter, click “New Parameter” button in parameter subtab and add the parameter.
Using script get the current script and then get the parameter.
For example:
let myScript = runtime.getCurrentScript();
let businessDaysCount = myScript.getParameter({
name: ‘<field_Id>’
});
The parameter value will be assigned to the variable, and it can used in the script.