Skip to content

Actions

ActionsService

Bases: FolderContext, BaseService

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

__init__(config, execution_context)

Initializes the ActionsService with configuration and execution context.

Parameters:

Name Type Description Default
config Config

The configuration object containing API settings

required
execution_context ExecutionContext

The execution context for the service

required

_get_app_key_and_schema_async(app_name, app_folder_path) async

Retrieves an application's key and schema asynchronously.

Parameters:

Name Type Description Default
app_name Optional[str]

The name of the application to retrieve

required

Returns:

Type Description
Tuple[str, Optional[ActionSchema]]

Tuple[str, Optional[ActionSchema]]: A tuple containing the application key and schema

Raises:

Type Description
Exception

If app_name is not provided

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(title, data=None, *, app_name=None, app_key=None, app_folder_path=None, app_folder_key=None, app_version=1, assignee=None) async

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(action_key, app_folder_path='', app_folder_key='')

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(action_key, app_folder_path='', app_folder_key='') 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