This is where the magic happens.
This is where the magic happens. This expands a sequence input into individual items to set parameters. It will assume 100 max and set the missing parameters to empty / placeholder
sequence of ids
prepared statement
index for parameter