Trigger workflow JSON error

Hi,
i have an issue when trying to trigger a workflow through the input controls on the dashboard, it returns a JSON template error.
my payload is as follows:
{
“HVACsetpoint”:{{HVACsetpoint}},
“indoorLights”:{{indoorLights}},
“outdoorLights”:{{outdoorLights}},
“HVACstatus”:{{HAVCstatus}}
}

^^ Is that your error? All the other properties in your object match the names of the values except this one.

Hi Dylan,
the value was copied directly from each filed, below is the screen shot:

{{HAVCstatus}} is populated by a select input, which means its value will be a string. That is where your JSON error is coming from. The value needs to either be wrapped in quotes ( “{{HAVCstatus}}” ), or you need to use a {{jsonEncode}} helper for the value.

1 Like