Template for note containing table

Hi @rlkeith,

You can send an array of complex objects like you specified in your Note’s body, but you can’t set up a Notefile template to use an array of complex objects. You CAN use arrays in templates, but they have to be arrays of known data types, like this:

{
  "req": "note.template",
  "file": "readings.qo",
  "body": {
    "new_vals": true,
    "temperature": 14.1,
    "humidity": 11,
    "pump_state": "4",
    "array_vals": [true, 14.1, 11, "4"]
  }
}
2 Likes