Created
April 26, 2022 13:13
-
-
Save cmcdevitt/89f740fc0eed8a8966b49a53d1f5c34e to your computer and use it in GitHub Desktop.
Rerun CI Lookup Rules on Select Items
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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