Hi,
Having an issue with a SQL select statement, when trying to pass a list of values from a Javascript transformer. If I select only 1 row in a table, the query works perfectly.
However, if I try selecting more than 1 value, I get the following error:
- message:"Conversion failed when converting the nvarchar value '169497,336273' to data type int."
Javascript transformer:
function selectStockItemIDs() {
const selectStockItemIDs = table1.selectedRows.map(row => '${row.g_STOCKITEMID}'
).join(', ');
return selectStockItemIDs;
}
return selectStockItemIDs();