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 08:24 PM
Hi,
if your business rule in same scope i.e. x_xlbv_xl_release then it should be allowed
if your BR is in another scope then it won't work
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-15-2020 10:21 PM
Refer below link for help
setWorkflow() cross-scope access issue
setWorkflow api cannot be used for cross scoped applications.
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-15-2020 10:22 PM
Hope you are doing good.
Let me know if I have answered your question.
If so, please mark appropriate response as correct & helpful so that this thread can be closed and others can be benefited by this.
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-17-2020 09:15 PM
If your query is resolved please close the question by marking appropriate response as correct
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader