Add new record in mysql depending of multi select values

The first thing I see is trMakeBulkInsertArray is not a javascript transformer, it a javascript query.

Here is a post with some info on transformers and when you use them over queries:

Another thing to note, you can't put the code into the Transformer of the bulk insert query, that only executes after the query finishes running.

2 Likes