I have the below payload for a Camunda step,
print(“CHART DIMENSION LIST::”,execution.getVariable(‘dimensionList’))
var payload = {
“query” : execution.getVariable(‘query’),
“dimensionList”: execution.getVariable(‘dimensionList’)
}
print(“PAYLOAD IS ::”,JSON.stringify(payload))
JSON.stringify(payload)
When I receive the output it shows the 1st print correctly but in the payload the dimensionList object is not getting passed. How to set it since its an array element?
Output:
CHART DIMENSION LIST::[employee_serial_number is Text Type, employee_name is Text Type]
PAYLOAD IS ::{“query”:“Show me all data”}