System Events

Modified on Mon, 19 Jan at 4:35 PM

TABLE OF CONTENTS



System Events

System events in ManagementStudio are specific actions within the platform that can be subscribed to and extended. These events can trigger actions such as sending email notifications (for example, when an application is archived), or they can be used more commonly to run PowerShell scripts. PowerShell scripts can interact with the ManagementStudio API to provide additional functionality beyond what is available out of the box. For example, when an application is superseded, a script could be triggered to check users' migration readiness.


Subscribing to System Events

System events must be subscribed to from appropriate platform sections. The main sections that support event subscriptions are:

  • PowerShell Scripts Panel
  • Email Templates Panel
  • My Preferences Page
    • Accessible via the My Preferences button at the top right of the main window.


Event Arguments

When an event is triggered, a list of relevant IDs (such as AppIds, MigrationIds, or DeviceIds) is passed to scripts in the Items variable. Some events also include additional data through the EventArg1 and EventArg2 variables.

Note: The Process Changed and Owner Changed events pass objects containing detailed data instead of just IDs. Refer to the Event List section for details.


Event List

The table below outlines system events, the arguments passed, and which modules support each event:

EventArg 1Arg 2AppsUsersDevicesDeployUnitDefect
Created
Updated
LockedTrue / False
ArchivedTrue / False
DeletedTrue / False
Process ChangedSee Note 1 below
Team Member ChangedSee Note 2 below
Blueprint AddedBlueprintId
Blueprint RemovedBlueprintId
Defect AddedDefectId
Attachment AddedAttachmentId
Attachment RemovedAttachmentId
Contact AddedContactId
Contact RemovedContactId
Excel Data Imported
Survey Signed OffSurveyIdTrue/False
Deploy Unit Added ToDeployUnitId
DeployUnit Removed FromDeployUnitId
Deploy Unit Slot BookedDeployUnitId
DeployUnit Slot ChangedDeployUnitId
App Superseded By
App Status Accepted
App Status Pending
App Status Rationalised
App Status Rejected


Notes

  1. For Process Changed events, the Items variable contains a list of objects with the following structure:
    { Id, FromProcessId, FromSubProcessId, ToProcessId, ToSubProcessId }
  2. For Team Member Changed events, the Items variable contains a list of objects with the following structure:
    { Id, UserId, Owner }


Further Support

For additional assistance, visit the ManagementStudio Service Desk to search the knowledge base or submit a support ticket.


Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article