- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-25-2023 06:30 AM
Hi Folks,
Is there any way we can put trigger conditions so that it never triggers by itself but only via script?
I dont wanna use 'Run Once' option. Is there any way?
Can we keep a flow in draft and then run via script? Is that possible or ay best practice constraints?
Thanks
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-25-2023 07:41 AM - edited 10-25-2023 07:41 AM
I think the best way is to create a subflow as it does not have trigger condition and then call it in fix script.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-25-2023 06:34 AM
Flow should be activated and not in draft state.
make it run once and the use below script to trigger it whenever you wish
Triggering a flow with a script
check these links as well if you wish to send inputs to flow
Trigger Flow from script with inputs
How to launch a flow from a script
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-25-2023 06:52 AM - edited 10-25-2023 06:53 AM
Run Once will ask for a time as mandatory and as soon as its deployed it will run right if we choose past date?
I dont want it to run by itself at all.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-25-2023 06:55 AM
what's the business use-case to use flow?
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-25-2023 07:12 AM
Its kind of one time script to reconcile the data. Its easier to configure it via flow than a fix script.
So I have done it via flow and will run the flow via fix script as an when needed. the first time run time is still not finalized.