- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2020 02:19 AM
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
Solved! Go to Solution.
- Labels:
-
Service Catalog
- 15,642 Views

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2020 04:06 AM
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>);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2020 02:38 AM
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
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2020 04:06 AM
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>);

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2020 04:10 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-02-2022 07:42 AM
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.