activities
latest
false
UiPath logo, featuring letters U and I in white

UI Automation Activities

Last updated Dec 4, 2024

Execute Command

UiPath.MobileAutomation.Activities.ExecuteCommand

Description

Execute native mobile commands that are not associated with a specific endpoint. For example, you can retrieve the battery info or dismiss alerts (see Appium Commands).

Use case

Use the Execute Command activity to run a mobile command that retrieves the device time.

In the following example, the mobile:getDeviceTime mobile command is used with the new Dictionary<string,object> {{"format","YYYY-MM-DDTHH:mm:ssZ"}} parameters to return the date and time from an Android Device Emulator.
Make sure to define the Output property in Execute Command (e.g., deviceTime) and the corresponding variable as a Data object type in Data Manager.


Project compatibility

Windows - Legacy | Windows

Configuration

Designer panel
  • Command - The command that you want to execute.
  • Parameters - The arguments that should pass with the command.
Properties panel
Common
  • ContinueOnError - Specifies if the automation should continue even when the activity throws an error. This field only supports Boolean values (True, False). The default value is False. As a result, if the field is blank and an error is thrown, the execution of the project stops. If the value is set to True, the execution of the project continues regardless of any error.
  • DisplayName - The display name of the activity.

Input

  • Command - The command that you want to execute.
  • Parameters - The arguments that should pass with the command.
Misc
  • Private - If selected, the values of variables and arguments are no longer logged at Verbose level.
Output
  • Output - The results of the command.
  • Description
  • Use case
  • Project compatibility
  • Configuration

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.