How do you use a script include in Flow Designer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-24-2021 09:17 AM
Hey everyone,
I am currently trying to call a script include in a script action as part of my flow. However, when I do this using the
var foo = new ScriptInclude();
It gives me an error saying that the "ScriptInclude" is not defined. Is there a special way of using a script include in flow? Any advice is awesome.
Thank you,
John
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-24-2021 09:36 AM
Hi John,
Please try global.scriptIncludeName().
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-24-2021 09:52 AM
So I did try using scopeName.ScriptIncludeName() and it says that the scope is not defined.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-24-2021 09:54 AM
You need to call the script include you are using. Let us say you have a script include called flowUtilities in the global application scope, you then call that script include using the following syntax:
new global.flowUtilities();
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-24-2021 09:56 AM
Also check if the script include is in a different scope and can be accessed.
Vinod Kumar Kachineni
Community Rising Star 2022