Community Tip - If community subscription notifications are filling up your inbox you can set up a daily digest and get all your notifications in a single email. X
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