Get all enabled schedulers
Jul 22, 2022
04:38 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Jul 22, 2022
04:38 AM
Get all enabled schedulers
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.
Labels:
- Labels:
-
Best Practices
ACCEPTED SOLUTION
Accepted Solutions
Jul 22, 2022
10:19 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Jul 22, 2022
10:19 AM
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);
2 REPLIES 2
Jul 22, 2022
10:19 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Jul 22, 2022
10:19 AM
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);
Jul 22, 2022
11:08 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Jul 22, 2022
11:08 AM
Thank you! It's perfect
