How to use setWorkFlow() API in a Scoped Application

Joe83
Kilo Contributor

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 belowfind_real_file.png

Here is the business rule:

find_real_file.png

Please take a look and advise.

Thanks,

John

10 REPLIES 10

Pradeep Sharma
ServiceNow Employee
ServiceNow Employee

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

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!

Joe83
Kilo Contributor

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.

Thanks for the update

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

Any luck?