Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Execute pre-import script - Data stream

sunilsargam
Tera Guru

I need to pass a single input parameter to a Data Stream using the Pre-Import Script.

I've already defined this input parameter in the Data Stream configuration.

I've also set up a Scheduled Import and linked it to a Data Source.

In the Data Source, I selected the type as Data Stream, and below that, I can see the input parameter fields where I can provide values dynamically.

5 REPLIES 5

@sunilsargam ,

Try without wrapper.

MIftikhar_0-1760604636307.pngMIftikhar_1-1760604648672.png

 

// Do NOT wrap this in a function: the script already has access to 'data_source' and 'import_set' by default.

(function(import_set_run, data_source) {
   ...
})(import_set_run, data_source);
Thanks & Regards,
Muhammad Iftikhar

If my response helped, please mark it as the accepted solution so others can benefit as well.