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

Community Tip - Your Friends List is a way to easily have access to the community members that you interact with the most! X

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