How to include script action in flow designer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-25-2022 01:53 AM
Hi All
I am try to call a script include from flow design.I am quite new in this front,can some please help?
Also,I am seeing the code snippet(from more action) is disabled.Can someone please tell what I am missing out?
Thanks in advance.
- Labels:
-
Scoped App Development

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-25-2022 02:21 AM
Hi,
You can create a script step.
Check this link from ServiceNow developer site.
Mark as correct and helpful if it solved your query.
Regards,
Sumanth
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-26-2022 04:30 AM
Feel free to reach out if you have further questions or else you can mark an answer as correct and helpful to close the thread so that it benefits future visitors also.
Regards,
Sumanth
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-25-2022 03:31 AM
Hello Shuvaday,
If you want to call this script include multiple times in flow or need to use in different flow then you can create a new action using the script step.
If your requirement is to use the script include only 1 time than I would suggest to use the flow variable and set the flow variable value with the output that your script include will return.
You can then use the Set Flow Variable Flow logic as shown below to call the script include:
Please mark this as helpful/correct, if it answer your question.
Thanks