I am a new user of Nodered and am starting to create my first flux.
I am having difficulty with the "node-red-contrib-mssql-plus" node, I can connect to my table, a row is created but my values don’t update. The result is empty.
When debugging after my mssql-plus node, I have this return as a value:
INSERT INTO [GPAOSQL]. [GPSQL]. [Ab_edi_OT_CCF] (ts_pos_wo_id, wo_instruction, type, category, reason)
VALUES ('', '', '', '', '')
I found a topic with a similar problem but I cannot find where the error is.
If anyone had an example flux with an update of the values in a database, that would be really great.
Please post code between backticks ``` like this ```
When copying values from the debug sidebar, use the "Copy Value" button that appears under your mouse cursor when you hover over the message
On you your issue...
The debug BEFORE SQL shows payload is an array but in your SQL, you try to access payload.ts_pos_wo_id - an array is accessed by [] square brackets.
To simplify things (and avoid mistakes) use the "Copy Path" button that appears under your mouse cursor when you hover over the item of interest & use that.
Lastly,
I strongly recommend you use the parameters instead of {{{mustache}}} - this will protect your database against SQL injection.