I can't figure out how to get the dropdown to list the values as the options. It only lists the labels so "PumpType" is listed 5 times in the dropdown. I need the dropdown to list the "Value1, Value2,...Value5" instead.
I have this working where I pull the same information from an Excel spreadsheet (migrating from spreadsheet to SQL) and the array comes in correctly.
Tried the suggestions but still can't get it to work. Tried some JSONata which this syntax works on the their browser exercise but not sure why it doesn't work inside NR?
I found a solution by passing it through a function node
// Assuming msg.payload is your array of objects
// And you want to extract values from a property named 'exampleProperty'
let valuesArray = msg.payload.map(function (obj) {
return obj.PumpType;
});
// Set the extracted values array to the payload or to a new property to pass it to the next node
msg.payload = valuesArray;
// Return the message object to continue the flow
return msg;