What is the reason behind that we should not write before Business Rules on Catalog related tables?

Daniel Borkowi1
Mega Sage

Hi Community, 

the ServiceNow documentation  states, that you should not create Before Business Rules on catalog related tables:

  • Request [sc_request]
  • Request Item [sc_req_item]
  • Cart [sc_cart]
  • Cart Item [sc_cart_item]

See: https://docs.servicenow.com/bundle/utah-it-service-management/page/product/planning-and-policy/conce...

 

Also Instance Trouble shooter will create findings for such Business Rules.

 

My Question is - what is the reason behind that restriction?

 

Greets

Daniel

1 ACCEPTED SOLUTION

Karan Chhabra6
Mega Sage
Mega Sage

Hi @Daniel Borkowi1 ,

 

One reason for this restriction can be that the request item records are inserted in the database before the request record does and therefore the business rules on sc_req_item runs before any business rules defined on sc_request table.

View solution in original post

2 REPLIES 2

Karan Chhabra6
Mega Sage
Mega Sage

Hi @Daniel Borkowi1 ,

 

One reason for this restriction can be that the request item records are inserted in the database before the request record does and therefore the business rules on sc_req_item runs before any business rules defined on sc_request table.

Hi @Karan Chhabra6, thanks for your input.

But if the Business rule is only impacting the request item, this should be no issue, or? Most of the logic is like - if something is set in RITM get some additional information and update a field on RITM - so Request self is not involved. For sure your statement makes sense, if in RITM BR is something requested from Request - but this doesn't justify that you should not use before BR on RITM at all.

 

Greets 

Daniel