Skip to content

Instantly share code, notes, and snippets.

@cmcdevitt
Created January 20, 2022 20:24
Show Gist options
  • Select an option

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

Select an option

Save cmcdevitt/e487634dd3f019e02160417e9c33347c to your computer and use it in GitHub Desktop.
Launch a Background Job - Reconcile unmatched discovered items
/*
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