- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-04-2020 07:21 AM
Is there a way to stop a flow designer from running?
example:
setWorkflow(false); //Do not run business rules
autoSysFields(false); //Do not update system fields
Thank you!
Solved! Go to Solution.
- Labels:
-
flow designer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-05-2020 10:49 PM
Hi Mark,
Yes it triggered.
Orlando Patch 7
I am not sure any additional options are available on flow properties because I couldn't find it.
Script:
var gr = new GlideRecord('incident');
gr.initialize();
gr.setWorkflow(false);
var sysId = gr.insert();
gs.info(sysId);
Flow:
Output:
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-06-2020 04:52 AM
I don't believe you ticket the correct answer. I tested this myself, and applying setWorkflow(false) will prevent flows from being triggered.
Kind regards,
Mark
2020 ServiceNow Community MVP
2020 ServiceNow Developer MVP
---
LinkedIn
Community article list
Kind regards,
Mark Roethof
Independent ServiceNow Consultant
10x ServiceNow MVP
---
~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-06-2020 04:55 AM
Hi Mark,
Can you please share which instance version you are referring and which additional configuration?
I can test the same and confirm for Orlando version as the question is for Orlando version.
Just to be on same page.
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-06-2020 05:41 AM
Hi Mark,
My team lead says it's not working! I will try this myself today and marked the correct answer.
Thanks again!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-18-2020 02:04 PM
Hi Guys,
In Orlando patch 7 which I am currently using, the setWorkflow(false) doesn't stop the flow. However, when I tried in Paris, it works!
Thank you again!