Need to update the records to false, but it takes mare time to update the records using BR.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-19-2023 07:29 AM
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
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-02-2023 11:28 PM
@sowmya25 --
- Simulating above thing on incident table with condition as “When assignment group is Software then record
- should become inactive”
2. Created Flow for the same but it also has some delay after triggering condition
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.
5.After execution of above script all required active incidents became false