Skip to main content

UiPath.Studio.Activities.Api.ScopedActivities

In this section you can find more information on how to build activities using UiPath.Studio.Activities.Api.ScopedActivities.

IExclusiveScopedActivitiesService

note

This feature was introduced in UiPath.Studio.Activities.Api v21.4.

Exposes the functionality of filtering Command Palette activities based on a current scope.

Methods

void AddExclusiveScopedActivities(Type scopeActivity, IReadOnlyCollection<Type> exclusiveActivitiesCollection)

Adds a list of suitable activity types to the specified scope type.

Parameter TypeParameter NameDescription
TypescopeActivityScope activity type.
IReadOnlyCollection<Type>exclusiveActivitiesCollectionList of suitable activities.

IScopedActivitiesService

note

This feature was introduced in UiPath.Studio.Activities.Api v20.4.

Exposes the functionality of associating scope activity types with their suitable activity types, creating a connection between a scope activity and the activities that work within that scope, for example Excel Application Scope and Excel activities.

When clicking Add Activity inside a custom scope activity to search for and add activities, the activities which fit the current scope appear at the top of the list of suggestions offered by the Command Palette.

Methods

void SetScopedActivity(Type scopeActivity, Type activity)

Adds a pair made from a scope activity and an activity that is suitable to that scope.

Parameter TypeParameter NameDescription
TypescopeActivityScope activity type.
TypeactivitySuitable activity type.

void SetScopedActivities(Type scopeActivity, IReadOnlyCollection<Type> activitiesCollection)

Adds a list of suitable activity types to the specified scope type.

Parameter TypeParameter NameDescription
TypescopeActivityScope activity type.
IReadOnlyCollection<Type>activitiesCollectionList of suitable activities.