Created
January 20, 2022 20:24
-
-
Save cmcdevitt/e487634dd3f019e02160417e9c33347c to your computer and use it in GitHub Desktop.
Launch a Background Job - Reconcile unmatched discovered 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
| /* | |
| Create a Reconcile unmatched discovered items" by script | |
| */ | |
| var params = '{"limit":"10000","firstDiscoveredItem":""}'; | |
| var jobConfigID = 'sn_sec_cmn.reconcile_unmatched_discovered_items'; | |
| var brj = new sn_sec_cmn.BackgroundJobUtils(); | |
| var job = null; | |
| /* | |
| createBackgroundJob : Parameters | |
| <table> based on Job Configuration | |
| <Job Type> The Job Name found in Background Job Configuration table [sn_sec_cmn_background_job_configuration] | |
| <params> JSON object that is passed to the Background Job | |
| <documentID> blank | |
| <parentJob> blank | |
| <jobConfigId> is the "string" id found in Job Configuration table [sn_sec_cmn_background_job_configuration], field "Configuration id" | |
| */ | |
| job = brj.createBackgroundJob('sn_sec_cmn_ci_lookup_rules','Reconcile unmatched discovered items',params,'','',jobConfigID); | |
| gs.info(job);//return | |
| //sn_sec_cmn_background_job.list |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment