SncTriggerSynchronizer.executeNow(schedJob)

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-17-2016 07:07 AM
hi all,
i am trying to execute a sceduled import from background using SncTriggerSynchronizer.executeNow(schedJob).
i am holding the return value of above in a variable and printing it
var schedJob = new GlideRecord('scheduled_import_set');
if(schedJob.get('name', 'naveen_test')){
var a =SncTriggerSynchronizer.executeNow(schedJob);
gs.print(a+'naveen');
}
each time it is printing different sys_id , but unable to identify to which table that sys_id belongs to.
i queried dynamically for all tables that have that sys_id , but i couldnt get any positive result.
any idea to which table that sys_id belongs to ???

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-24-2016 03:10 AM
Yeah I checked data source loader script include .. but seems like it is not use ful ..
I didn't knew glide import set loader is synchronous I ll try that .. thanks 🙂

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-24-2016 02:57 AM
Hi Naveen,
Your Scheduled import, will use a "Data Source" to load data? You can check the Import set table for related import sets, and check their status. And move your workflow or not accordingly.
Telmo

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-24-2016 03:00 AM
if i request for a refresh once then there is no complexity i can check import and retrigger workflow.But if it is multipe refresh on same request identifying correct one for each execution is tricky, and at the same time job execution completely independent we cant rely on the recent one along with few filters
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-02-2017 08:30 PM
Hi Naveen,
Did you ever get an answer to which table the return sys_id refers to?
I want to temporarily create a 'sysauto_report' and SncTriggerSynchronizer.executeNow the record. After it is finished running the report I want the the 'sysauto_report' deleted. But, if the record is deleted to soon the executed report fails to start as it cannot find the original record with the report name in it to run. I can put in a gs.sleep() but would prefer to monitor the execution of the report and delete the 'sysauto_report' when completed.
Peter
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-03-2017 07:25 AM
It belongs to the "discovery_status" table.