How do you use a script include in Flow Designer

JohnM2
Kilo Contributor

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

12 REPLIES 12

Gnani1
Kilo Expert

Hi John,

Please try global.scriptIncludeName().

 

JohnM2
Kilo Contributor

So I did try using scopeName.ScriptIncludeName() and it says that the scope is not defined.

ccajohnson
Kilo Sage

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();

vkachineni
Kilo Sage
Kilo Sage

Also check if the script include is in a different scope and can be accessed.

Please mark Correct and click the Thumb up if my answer helps you resolve your issue. Thanks!
Vinod Kumar Kachineni
Community Rising Star 2022