How to call script include in flow desinger

Rajveer
Tera Expert

Hi Experts,

How to call script include in the flow designer if when we are using flow in service catalog. 

Could you expain with one example.

Regards

Rajveer

 

 

1 ACCEPTED SOLUTION

Hitoshi Ozawa
Giga Sage
Giga Sage

Create a custom Action with a Script step.

In the Script step, add code like below:

var scriptInc = new <Script Include name>();
var result = scriptInc.<method name to execute>(<arguments>); 

View solution in original post

4 REPLIES 4

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

the syntax should be same; you can use this in the script section f(x)

var obj = new ScriptInclude();

var returnedValue = obj.functionName();

Regards
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Hitoshi Ozawa
Giga Sage
Giga Sage

Create a custom Action with a Script step.

In the Script step, add code like below:

var scriptInc = new <Script Include name>();
var result = scriptInc.<method name to execute>(<arguments>); 

Sample:

find_real_file.png

I just want to call one sub function of script include what is currently called in a BR. I want to replace BR with a flow 

Below is what is written inside a BR. I want to write it inside a flow. 

 new sn_disco_certmgmt.CertificateRequestAutomatedFlow().customValidationForRequestingCertificate(current, current.sys_id);

 

Can you please advise.