Community Tip - You can Bookmark boards, posts or articles that you'd like to access again easily! 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