How to create concurrent import set using script

Vikram Gupta
Tera Contributor

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. 

VikramGupta_0-1691921787446.png

Or Can we map data source to transform map by script?

#concurrent

 

1 REPLY 1

David McDonald
Tera Contributor

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!