activities
latest
false
IT Automation Activities
Last updated Jun 11, 2024

Accessing idle trigger event information

After an idle 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 IdleTriggerArgs field.

Idle trigger arguments

These types of arguments help 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.IdleTrigger;
  • .result - returns a JSON strings which displays the event information:
    • ComputerID - the name of the machine that entered idle mode.
    • IdleTimestamp - the ending timestamp of every idle delay interval

Accessing the trigger event data

  1. In the Actions block, set a name for the trigger argument in the IdleTriggerArgs 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.

  • Idle 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.