Create a New Module to Run a Flow?

mfhaciahmetoglu
Mega Sage

Hey all,

 

I have a small question.

 

I want to create a new module under All. And when the user choose this module, I want a flow in the flow designer to be activated.

 

mfhaciahmetoglu_0-1713533307159.png

 

Do you know how this can be done?

 

Thanks.

 

Best,

Firat

1 ACCEPTED SOLUTION

Ryan Duce
Tera Guru

Choose Script (from Arguments) and paste the following script into the arguments field (docs)

// Starts the flow asynchronously.
          var result = sn_fd.FlowAPI.getRunner()
          .flow('global.myFlow')
          .inBackground()
          .withInputs(inputs)
          .run();​

Worth bearing in mind that the Flow runs asynchronously with the above code. No feedback will be presented to the user on the success or failure of the Flow.

 

As others have said, it's probably better to use the same script in a UI Action or a more context-sensitive area.

View solution in original post

9 REPLIES 9

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @mfhaciahmetoglu 

 

There is no module called All. You can create module as per the application like Incident/change. The screenshot which you shared tell that how the module will open. 

 

https://youtu.be/D21mSygQoyk

 

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

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
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

Hello,

 

Thank you for your response. Please read my question more carefully.

 

I said a new module under "All" and I asked how that module can trigger a flow.

 

Do you happen to know how?

 

Thanks.

 

Best,

Firat

Hi @mfhaciahmetoglu 

 

All is a menu navigation of banner frame,

 

AGLearnNGrow_0-1713534228156.png

 

 

Also a flow work on record / table not in Module mate , So if by using that module if I create any record then the flow will be attached. In link type, you will not find a way to add flow. 

 

 

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

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
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

Thanks!

 

So then I can actually create a request, which then will trigger the flow.

 

That sounds like a solution.

 

Thanks.

 

Best,

Firat