Skip to main content
17-Peridot
July 28, 2021
Question

subsystem

  • July 28, 2021
  • 1 reply
  • 1090 views

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

1 reply

17-Peridot
July 28, 2021

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();
17-Peridot
August 4, 2021

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

17-Peridot
August 4, 2021

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