Community Tip - Learn all about the Community Ranking System, a fun gamification element of the PTC Community. X
Can we call the services of subsystem in our javascript code?
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 */
});