Actions
ActionsService ¶
Service for managing UiPath Actions.
Actions are task-based automation components that can be integrated into applications and processes. They represent discrete units of work that can be triggered and monitored through the UiPath API.
This service provides methods to create and retrieve actions, supporting both app-specific and generic actions. It inherits folder context management capabilities from FolderContext.
Reference: https://docs.uipath.com/automation-cloud/docs/actions
create ¶
create(
title,
data=None,
*,
app_name=None,
app_key=None,
app_folder_path=None,
app_folder_key=None,
app_version=1,
assignee=None,
)
Creates a new action synchronously.
This method creates a new action task in UiPath Orchestrator. The action can be either app-specific (using app_name or app_key) or a generic action.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
title
|
str
|
The title of the action |
required |
data
|
Optional[Dict[str, Any]]
|
Optional dictionary containing input data for the action |
None
|
app_name
|
Optional[str]
|
The name of the application (if creating an app-specific action) |
None
|
app_key
|
Optional[str]
|
The key of the application (if creating an app-specific action) |
None
|
app_folder_path
|
Optional[str]
|
Optional folder path for the action |
None
|
app_folder_key
|
Optional[str]
|
Optional folder key for the action |
None
|
app_version
|
Optional[int]
|
The version of the application |
1
|
assignee
|
Optional[str]
|
Optional username or email to assign the task to |
None
|
Returns:
Name | Type | Description |
---|---|---|
Action |
Action
|
The created action object |
Raises:
Type | Description |
---|---|
Exception
|
If neither app_name nor app_key is provided for app-specific actions |
create_async
async
¶
create_async(
title,
data=None,
*,
app_name=None,
app_key=None,
app_folder_path=None,
app_folder_key=None,
app_version=1,
assignee=None,
)
Creates a new action asynchronously.
This method creates a new action task in UiPath Orchestrator. The action can be either app-specific (using app_name or app_key) or a generic action.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
title
|
str
|
The title of the action |
required |
data
|
Optional[Dict[str, Any]]
|
Optional dictionary containing input data for the action |
None
|
app_name
|
Optional[str]
|
The name of the application (if creating an app-specific action) |
None
|
app_key
|
Optional[str]
|
The key of the application (if creating an app-specific action) |
None
|
app_folder_path
|
Optional[str]
|
Optional folder path for the action |
None
|
app_folder_key
|
Optional[str]
|
Optional folder key for the action |
None
|
app_version
|
Optional[int]
|
The version of the application |
1
|
assignee
|
Optional[str]
|
Optional username or email to assign the task to |
None
|
Returns:
Name | Type | Description |
---|---|---|
Action |
Action
|
The created action object |
Raises:
Type | Description |
---|---|
Exception
|
If neither app_name nor app_key is provided for app-specific actions |
retrieve ¶
Retrieves an action by its key synchronously.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
action_key
|
str
|
The unique identifier of the action to retrieve |
required |
app_folder_path
|
str
|
Optional folder path for the action |
''
|
app_folder_key
|
str
|
Optional folder key for the action |
''
|
Returns:
Name | Type | Description |
---|---|---|
Action |
Action
|
The retrieved action object |
retrieve_async
async
¶
Retrieves an action by its key asynchronously.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
action_key
|
str
|
The unique identifier of the action to retrieve |
required |
app_folder_path
|
str
|
Optional folder path for the action |
''
|
app_folder_key
|
str
|
Optional folder key for the action |
''
|
Returns:
Name | Type | Description |
---|---|---|
Action |
Action
|
The retrieved action object |