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

Community Tip - Need help navigating or using the PTC Community? Contact the community team. X

subsystem

AP_9587236
17-Peridot

subsystem

Can we call the services of subsystem in our javascript code?

3 REPLIES 3

Yes you can.  In your service editor, under Me/Entities, select Other Entity and type in the subsystem.  You should see all the available services for that subsystem.  The code will look similar to this:

 

// result: INFOTABLE dataShape: "EntityList"
var result = Subsystems["LoggingSubsystem"].GetConfigurationTables();

From this code, we can access only services, alerts and properties. But how to access Events, Subscriptions, Permissions, Change History ?

You can use these services to access that (except for subscriptions, which I don't believe are available on Subsystems)

Subsystems["LoggingSubsystem"].GetConfigurationChangeHistory(); //Change history

Subsystems["LoggingSubsystem"].GetRunTimePermissions(); //Runtime permissions (you can also find design time permissions)

Subsystems["LoggingSubsystem"].GetEventDefinitions({  //event definitions
	category: undefined /* STRING */,
	dataShape: undefined /* DATASHAPENAME */
});
Top Tags