The community will undergo maintenance on October 16th at 10:00 PM PDT and will be unavailable for up to one hour.
Is there a way I can get a infotable of the enabled schedulers using GetEntities? What filters do I have to apply for that?
Solved! Go to Solution.
Use this code:
// result: INFOTABLE dataShape: "RootEntityList"
var t = ThingTemplates["Scheduler"].GetImplementingThingsWithData();
var query = {
filters: {
type: "EQ",
fieldName: "Enabled",
value: true
}
};
var params = {
t: t /* INFOTABLE */,
query: query /* QUERY */
};
// result: INFOTABLE
var result = Resources["InfoTableFunctions"].Query(params);
Use this code:
// result: INFOTABLE dataShape: "RootEntityList"
var t = ThingTemplates["Scheduler"].GetImplementingThingsWithData();
var query = {
filters: {
type: "EQ",
fieldName: "Enabled",
value: true
}
};
var params = {
t: t /* INFOTABLE */,
query: query /* QUERY */
};
// result: INFOTABLE
var result = Resources["InfoTableFunctions"].Query(params);
Thank you! It's perfect