Field limit on getData

Hello,

Is there a limit on the number of fields you can include in a data query.
I tried 30+ fields and the resultant getData data was empty.
If I shortened the field list to 20 or less it worked.

  var myFilter = {
    variable: <is there a field list limit here??>,
    qty: 1
  }

  var data = await device.getData(myFilter);

hi @tago,

It does not have limit, but when you will get an array of variables, you need to use the key “variables”, like:
var myFilter = {
variables: [“temp”, “humidity”, "pressure],
qty: 1
}

var data = await device.getData(myFilter);

Also, you can see all available queries here.

Hi @eger,

I was using the format [“temp”, “humidity”, “pressure”] but the key was variable rather than variables.
Interestingly up to 20 in the list did work with variable:
I’ll try again with variables: when I get a moment.

1 Like