Business rule is not working when unchecked the Run Business rule from the transform Map
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-28-2023 03:50 AM - edited 07-28-2023 05:02 AM
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-
(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...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-01-2023 05:23 AM
Hello @Jyoti Tripathi,
please check the below article
https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0538161
Also please check if the BR is active or not
please mark my answer correct and helpful if it helped you