That is excellent David, thank you so much!
This just tested successfully in v2025 Standard.
Modified query:

Fields:

Perform logic:

Results of import... ABC data:

Perfect!
------------------------------
Kevin Moyes
Technical Systems Analyst
Munjal White Consulting Co.
Toronto ON
------------------------------
Original Message:
Sent: 01-28-2026 14:09
From: David Speck II
Subject: VI job import filter, ODBC source and a runtime parameter
This is possible by using perform logic on the "On Execution" event to override the SQL$ variable. The easiest way to do this would be to put a placeholder in the SQL statement's WHERE clause, something like this.
SELECT * FROM SO_SalesOrderDetail WHERE SalesOrderNo = '$SONo$'
You'll then replace the $SONo$ text string using the SUB function with the value in the runtime assigned variable, which starts as OPTION1$ and increments for each field on the Data tab that uses a runtime assignment.
The actual perform logic can be entered inline in the field as long as it contains a ' character and Sage 100 will EXECUTE it instead of PERFORM'ing it. So it should look something like this. Keep in mind that thee SUB function is case-sensitive so make sure you get the case of your placeholder correct.
SQL$ = SUB(SQL$, "$SONo$", OPTION1$) ! '
------------------------------
David Speck II
Blytheco LLC
------------------------------
Original Message:
Sent: 01-26-2026 10:49
From: Kevin Moyes
Subject: VI job import filter, ODBC source and a runtime parameter
Thanks for the idea Dan. I'd probably go with an SO header UDF checkbox, with overridden SQL filter, over a UDT (which I find awkward to work with).
------------------------------
Kevin Moyes
Technical Systems Analyst
Munjal White Consulting Co.
Toronto ON
Original Message:
Sent: 01-25-2026 23:30
From: Dan Burleson
Subject: VI job import filter, ODBC source and a runtime parameter
You could use a UDT with a single row 7-character key for the sales order and join that to the sales order detail table in the ODBC Table selection. They edit the UDT and not the V/I import job.
------------------------------
Dan Burleson
Software Consultant
Connex Software
Corvallis OR
541-829-1054