- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-11-2026 06:02 AM
Hey All,
I wanted to know that can we create flow using script in ServiceNow and which table stores which part of flow.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-17-2026 12:29 AM
Hey, going directly to your question, yes you can create a flow via code, but this has to be done via the now SDK as far as I am aware, you cannot just run a script in SN and create a flow at least in a easy way.
From SDKK 4.3.0 you normally have access to the fluent FLOW API , meaning you can also use AI to generate these flows. sdk-examples/flow-sample/src/fluent/flow-trigger-catalog-item.now.ts at main · ServiceNow/sdk-exampl...
I Hope this helps !
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-11-2026 10:27 PM
Yes, I know that, but is it possible to create a flow with scripting or not?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-11-2026 10:29 PM
I doubt we can set trigger conditions or how to map your scriptred trigger conditions
Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
****************************************************************************************************************
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-11-2026 07:09 AM
I never came across any customer requirement to create a flow from script.
Flows are meant for low-code, no-code requirements and if you are creating flow using script then I think it's not recommended.
Flows are meant to be created from UI.
💡 If my response helped, please mark it as correct ✅ and close the thread 🔒— this helps future readers find the solution faster! 🙏
Ankur
✨ Certified Technical Architect || ✨ 10x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-11-2026 10:24 PM
Yes, I know that, but I wanted to know that is it possible to create a flow with scripting or not?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-11-2026 08:11 AM
Can you validate your requirement again- is it call flow from script OR create flow using script?
Flows are intended to provide a low-code way of designing and managing process logic. If an entire flow could be created through scripting alone, it would undermine the purpose of having a flow designer. Therefore, while scripts can be used for specific actions or to trigger flows, the overall flow structure is expected to be built and maintained through the visual designer.
You can’t build a complete flow solely through server-side scripting, since the flow structure depends on the visual logic designer.
However, you can use scripts to automate specific actions within a flow or to trigger flows programmatically.
Regards
Tanushree Maiti
ServiceNow Technical Architect
LinkedIn: https://www.linkedin.com/in/tanushreemaiti