Business rule is not working when unchecked the Run Business rule from the transform Map

Jyoti Tripathi
Giga Guru

Hi,
I have noticed that once i have disabled the Run Business Rule checkbox from transform map, any business rule written on the targeted table is not running.

Below is the business rule-

JyotiTripathi_0-1690541258086.png

 

(function executeRule(current, previous /*null when async*/) {

var gr = new GlideRecord("sn_hr_core_case");
gr.addQuery("u_order_number",current.u_order_number);
gr.query();
while (gr.next()) {
	gr.u_location=current.u_location;
	gr.u_job_code=current.u_job_code;
	gr.update();
gr.setWorkflow(false);
}
})(current, previous);

 

Whenever a order number/loc/code is inserted or updated via a data load, BR is not working

@Ankur Bawiskar :could you please help...

10 REPLIES 10

ritu_saluja
Tera Expert

Hello @Jyoti Tripathi,

please check the below article

https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0538161

https://docs.qualityclouds.com/qcd/transform-maps-with-run-business-rules-option-enabled-31720074.ht...

Also please check if the BR is active or not

please mark my answer correct and helpful if it helped you