Activities
latest
false
Banner background image
IT Automation Activities
Last updated Mar 8, 2024

Accessing peformance trigger event information

After a performance trigger executes, you have the option to access the event data through the Actions block of the Trigger Scope activity, by defining an argument in the ProcessPerformanceTriggerArgs field.

Performance trigger arguments

This type of argument helps you access the trigger event data, as it has three predefined methods:

  • .TriggerName - returns the trigger name, the one set in the DisplayName field;
  • .TriggerType - returns the desktop trigger type, which in this case is UiPath.DesktopTriggers.Activities.ProcessPerformanceTrigger;
  • .result - returns a JSON strings which displays the event information, such as resource consumption percentages, computer ID, or monitoring starting time. See Interpreting the performance trigger event result for more details.

Accessing the trigger event data

  1. In the Actions block, set a name for the trigger argument in the ProcessPerformanceTriggerArgs field. For example, "args".
  2. To retrieve the trigger type, apply the TriggerType method to the previously defined argument in an activity of your choice. For example, args.TriggerType.
  3. To retrieve the trigger name, apply the TriggerName method to the previously defined argument in an activity of your choice. For example, args.TriggerName.
  4. To retrieve the complete trigger event information, apply the result method to the previously defined argument in an activity of your choice. For example, args.result.

  • Performance trigger arguments
  • Accessing the trigger event data

Was this page helpful?

Get The Help You Need
Learning RPA - Automation Courses
UiPath Community Forum
Uipath Logo White
Trust and Security
© 2005-2024 UiPath. All rights reserved.