Hi Swadesh,

Yes query business rules restrict the query and may affect the rowCount

best practice is to add following condition in query business rule so that it runs only during interactive sessions and not when some script queries the table

gs.getSession().isInteractive()

Mark Correct if this solves your issue and also mark 👍 Helpful if you find my response worthy based on the impact.
Thanks
Ankur

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

View solution in original post