Skip to content

Instantly share code, notes, and snippets.

@cmcdevitt
Created April 26, 2022 13:13
Show Gist options
  • Select an option

  • Save cmcdevitt/89f740fc0eed8a8966b49a53d1f5c34e to your computer and use it in GitHub Desktop.

Select an option

Save cmcdevitt/89f740fc0eed8a8966b49a53d1f5c34e to your computer and use it in GitHub Desktop.
Rerun CI Lookup Rules on Select Items
var re_run_arr = [];
var re_run_str = '';
var di = new GlideRecord('sn_sec_cmn_src_ci');
di.addEncodedQuery('number=SDI000000001318');//Identify Items to re run the rules
di.query();
while(di.next()){
re_run_arr.push(di.getUniqueValue());//Collect an Array of sys_id
}
re_run_str = re_run_arr.join();
new sn_sec_cmn.CILookupUtil().reRunCILookupRules(re_run_str);//Re run the rules
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment