Skip to main content
Jul 28, 2021 8:09 AM UTC
Question

subsystem

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

3 replies

Jul 28, 2021 12:29 PM UTC

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();
Aug 4, 2021 1:06 PM UTC

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

Aug 4, 2021 2:36 PM UTC

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 */
});