Execute pre-import script - Data stream
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-15-2025 11:45 PM
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
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-16-2025 01:50 AM - edited 10-16-2025 02:04 AM
Try without wrapper.
// 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
Muhammad Iftikhar
If my response helped, please mark it as the accepted solution so others can benefit as well.
