How to use setWorkFlow() API in a Scoped Application
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-10-2020 07:57 PM
Hi ServiceNow Community Developers,
I have a very simple business rule in scoped application that is using a setWorkflow() API to disable subsequent business rules so they can't run. I am using it exactly the same way as explained in the developer website for scoped APIs. When I run the business rule though it's throwing the error as shown in the screen shot below
Here is the business rule:
Please take a look and advise.
Thanks,
John

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-10-2020 09:26 PM
Hi John,
This is expected behaviour. You cannot disable workflow of global tables from out of the box table. The only possible option is to create the BR in global scope. That said, please note global related files are not captured in application scope and is not allowed to publish to store(**in case the intend here is to publish an app to store**).
- Pradeep Sharma
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-18-2022 06:08 AM
Hello @Pradeep Sharma
I am facing the same issue but not able to find out which BR is affecting this error. Can you please elaborate your solution it would be great.
Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-19-2020 07:48 PM
The vendor is able to reproduce this issue and they are currently looking into it. I will keep you guys posted as to what they found out.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-19-2020 09:05 PM
Thanks for the update
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-04-2022 11:46 AM
Any luck?