We're reclaiming inactive PDIs to keep them available for active builders. Learn what's changing, who's affected, and how to protect your work. Read More

Can we create flow using script

VaibhavP5059517
Giga Guru

Hey All,
I wanted to know that can we create flow using script in ServiceNow and which table stores which part of flow.

1 ACCEPTED SOLUTION

Diogo Ramos
Tera Sage

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 !

View solution in original post

23 REPLIES 23

PoonkodiS
Giga Sage

Hi @VaibhavP5059517 

Flow Designer is a user-friendly ServiceNow feature that lets you automate processes without writing complex code

you can script within Flow Designer in two main ways: by adding a Script step directly to a Custom Action or by toggling the Script mode within specific core actions.

Hey @PoonkodiS,
Thanks for the response but I am asking about creating flow using scripting not writing script inside the flow.

@VaibhavP5059517 

Flow Designer is a user-friendly ServiceNow feature that lets you automate processes without writing complex code

 

  • Reduces Scripting: Avoids complex Business Rules and script includes by using a visual UI.
  • Reusability: Convert common action sequences into reusable Subflows.