cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

The community will undergo maintenance on October 16th at 10:00 PM PDT and will be unavailable for up to one hour.

Get all enabled schedulers

MO_10216552
4-Participant

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?

ACCEPTED SOLUTION

Accepted Solutions

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

View solution in original post

2 REPLIES 2

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);
MO_10216552
4-Participant
(To:nmilleson)

Thank you! It's perfect

Announcements


Top Tags