How to create concurrent import set using script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-13-2023 03:19 AM
we can import and transform the data using below script but can we use same kind of script for conncurrent import set avoid creating schedule import set.
Or Can we map data source to transform map by script?
#concurrent
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-27-2024 05:33 PM
Looking into Concurrent Import Sets, it looks like the only way to trigger them is through a Scheduled Import Set where "Concurrent" is TRUE. What this does is it splits up the import set, and then adds jobs to the event queue to transform the data. This means that you can't directly start a transform, you add a job to the event queue and wait for the nodes to process the jobs over time.
Someone wrote a script where they manually create a Scheduled Import Set and fire it manually, and then wait for it to complete.
https://doriankersch.com/post/importing-a-million-records-daily-in-servicenow-part-2-pre-quebec/
See the function "newScheduledConcurrentImport".
Hope this helps!