Skip to main content
4-Participant
July 22, 2022
Solved

Get all enabled schedulers

  • July 22, 2022
  • 1 reply
  • 983 views

Is there a way I can get a infotable of the enabled schedulers using GetEntities? What filters do I have to apply for that?

Best answer by nmilleson

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);

1 reply

nmilleson17-PeridotAnswer
17-Peridot
July 22, 2022

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);
4-Participant
July 22, 2022

Thank you! It's perfect