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

Community Tip - Stay updated on what is happening on the PTC Community by subscribing to PTC Community Announcements. 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