Need to update the records to false, but it takes mare time to update the records using BR.

sowmya25
Tera Contributor
A
 
(function executeRule(current, previous /*null when async*/) {
var gr = new GlideRecord('customer_contact');
gr.addQuery('account', current.sys_id);
gr.query();
while(gr.next())
{
gr.u_customer_admin = false;
gr.update();
}
})(current, previous);
1 REPLY 1

Community Alums
Not applicable

@sowmya25 --

 

  1. Simulating above thing on incident table with condition as “When assignment group is Software then record
  2. should become inactive”

shraddhaDSawant_0-1691043978109.png

2. Created Flow for the same but it also has some delay after triggering condition

shraddhaDSawant_1-1691044006655.png

 

3.After searching on the community we found out that by fix script we can achieve same and it can update records in bulk.

4.Created Fix Script for Incident.

shraddhaDSawant_2-1691044065968.png

5.After execution of above script all required active incidents became false

shraddhaDSawant_3-1691044093121.png