After Query And Before Query Business rule what is main difference between them

--oooo--
Tera Contributor

Hello All,

I have written one script to show only operation status CI for the non-admin role.

first, I tried with the before query so it's showing me 2000 records for operational Ci and when I tried with the after query I got 2000 records.I have doubt what is difference between these two. please guide thank you.

4 REPLIES 4

--oooo--
Tera Contributor

Hello @Elijah Aromola but I am able to apply after the query i have attached a screenshot below please check it once

 

I believe you have the ability to execute after the query has finished but it wouldn't be to modify the query itself. For a business rule to and impact the query itself, it would have to be "before". 

AndersBGS
Tera Patron
Tera Patron

Hi @--oooo-- ,

 

Please see below documentation for explanation:

AndersBGS_0-1680031604572.png

https://developer.servicenow.com/dev.do#!/learn/learning-plans/tokyo/new_to_servicenow/app_store_lea...

 

If my answer has helped with your question, please mark my answer as accepted solution and give a thumb up.

 

Best regards

Anders

 

 

If my answer has helped with your question, please mark my answer as the accepted solution and give a thumbs up.

Best regards
Anders

Rising star 2024
MVP 2025
linkedIn: https://www.linkedin.com/in/andersskovbjerg/