- Overview
- Custom activities
- Migrating Activities to .NET 6
- Release Notes
- Building Workflow Analyzer Rules
- Building Activities Project Settings
- Creating Custom Wizards
- Prioritize Activities by Scope
- UiPath.Activities.Api.Base
- UiPath.Studio.Activities.Api
- UiPath.Studio.Activities.Api.Activities
- UiPath.Studio.Activities.Api.BusyService
- UiPath.Studio.Activities.Api.ExpressionEditor
- UiPath.Studio.Activities.Api.Expressions
- UiPath.Studio.Activities.Api.Licensing
- UiPath.Studio.Activities.Api.Mocking
- UiPath.Studio.Activities.Api.ObjectLibrary
- UiPath.Studio.Activities.Api.PackageBindings
- UiPath.Studio.Activities.Api.ProjectProperties
- UiPath.Studio.Activities.Api.ScopedActivities
- UiPath.Studio.Activities.Api.Settings
- UiPath.Studio.Activities.Api.Wizards
- UiPath.Studio.Activities.Api.Workflow
- UiPath.Studio.Api.Controls
- UiPath.Studio.Api.Telemetry
- UiPath.Studio.Api.Theme
- Robot JavaScript SDK
- Triggers SDK
UiPath.Studio.Activities.Api.Activities
In this section you can find more information on how to build activities using UiPath.Studio.Activities.Api.Activities.
Enables drag-and-drop functionality for activities, for example dragging items from the Resources panel onto an activity.
A repository of activity factories.
void Register(RegisterArgs registerArgs)
Registers a RegisterArgs specific for an activity.
Parameter Type |
Parameter Name |
---|---|
RegisterArgs |
registerArgs |
public void Register(Type activityType, Func<string, Activity> activityFactory, string activityDataId)
Registers a factory method for creating the specified activityType type activity and associates the activityDataId with the activity type.
Parameter Type |
Parameter Name |
---|---|
Type |
activityType |
Func<string, Activity> |
activityFactory |
string |
<void Register<T>(Func<string, T> activityFactory, string activityDataId)
Registers a factory method for creating the specified T type activity and associates the activityDataId with the activity type.
Parameter Type |
Parameter Name |
---|---|
Func<string, T> |
activityFactory |
string |
Exposes the functionality of adding activity synonyms.
Exposes functionality for trigger activities to register information about themselves.
Type |
Name |
Description |
---|---|---|
bool |
IsEnabled |
Indicates if Studio supports triggers (HasFeature is
true and feature flag is true ).
|
void SetData(Type activityType, TriggerData triggerData)
Allows an activity to register information about its output argument, like type (e.g. SalesForceAccount, Office365Message[]) and name.
Parameter Type |
Parameter Name |
Remarks |
---|---|---|
Type |
activityType |
The type of activity. |
TriggerData |
triggerData |
The associated trigger data for this activity, |
Exposes the functionality of setting an activity as attended.
Arguments used to exchange information between Studio and activities related to activity type, activity data ID, and multiple factory methods for creating the selected activity type.
Type |
Name |
Description |
---|---|---|
string |
ActivityDataId |
The associated ID for the activity type. |
Type |
ActivityType |
The activity type of the activity created by the associated factory method (ActivityFactoryV1 or ActivityFactoryV3). |
public Func<string, Activity> FactoryV1
Factory method for creating the specified activity type. The string parameter is the optional associated data (asset name, queue name, etc.).
Parameter Type |
Parameter Name |
Remarks |
---|---|---|
Func<string, Activity> |
FactoryV1 |
The type of activity. |
public Func<string, Activity> FactoryV3
Factory method for creating the specified activity type. The string parameter is the optional associated data (asset name, queue name, etc.).
Parameter Type |
Parameter Name |
Remarks |
---|---|---|
Func<string, Activity> |
FactoryV3 |
The type of activity. |
public Func<string, Task<Activity>> FactoryV4
Factory method for creating the specified activity type. The string parameter is the optional associated data (asset name, queue name, etc.). Requires Studio 2022.4 or later.
Parameter Type |
Parameter Name |
Remarks |
---|---|---|
Func<string, Task<Activity>> |
FactoryV4 |
The type of activity. |
Trigger data for the activity.
Type |
Name |
Description |
---|---|---|
string |
PropertyName |
Name of the activity property which holds the trigger data. |
string |
Name |
Name of the variable or argument which Studio will create and map to the activity property. |
Type |
Type |
The type of the trigger data (e.g. Office365Email[]). |
ArgumentDirection |
Direction |
Not used, but allows activities to specify if the data is for input or output. Currently output only. |