Custom Activity or Library Mapping
Custom Activity Or Library Mapping to Power Automate Desktop
Custom Activity Mapping
Custom Activities allow an RPA developer run custom code in their respective RPA platform. Unfortunately these specially crafted packages cannot always be directly exported to Power Automate Desktop (PAD). Three possible scenarios exist when mapping Custom Activities which are described below.
Using Rules Dashboard
Custom Actions Rules dashboard is currently mostly read-only. The only available functionality is to enable rules or bulk delete rules.
Using CSV
- Export CSV
To start using the CSV Rules sheet, the user must export the Rules table to CSV. To do so, from the Rules dashboard, click Advanced -> Export Rules to CSV
The following columns will be auto-populated by Blueprint's Rule Generator:
- Column A ("ScopeId") = Scope for Rule. Blank implies Instance level
- Column B ("SourceActionType") = CUSTOM_ACTION
- Column C ("TargetActionType") = EXTERNAL_FLOW
- Column E ("SourceObjectName") = Custom Activity Namespace
- Column G ("SourceActionName")= Custom Activity Method Name
- Column N ("SourceParameterName") = Name of Parameter
- Column R ("TargetParameterName") = Same as SourceParameterName
- Column Y ("IsActive") = FALSE
- Configure Rules
Scenario 1) Map to New Flow
When mapping to a new flow, the only column that needs to be filled in by the user is O ("SourceParameterType") which can have one of two values: Input or Output. In some scenarios where a parameter is both an Input and Output, the row needs to be duplicated with one defined as the Input and the other as the Output. Finally, set Column Y ("IsActive") to TRUE to enable the Rule
Scenario 2) Map to Existing Flow
To map to an existing flow, the following columns must be defined by the user
- Column O ("SourceParameterType") = Input or Output
- Column K ("TargetActionId")= GUID of existing flow. Read How to find Flow GUID
- Column L ("TargetActionName") = Name of flow
- Column R ("TargetParameterName") = Typically matches Column N ("SourceParameterName")
- Column Y ("IsActive") = Set to TRUE to enable Rule
Scenario 3) Map to PAD actions or Scripts
Read: Map Custom Actions or DLL calls to Inline Script
Scenario 4) Mapping to Project Library in UiPath
When mapping to a project library, follow these steps. Blueprint is smart enough to link to a project library using its namespace and activity name
- Import the NuGet package like any other project
- Column Y ("IsActive") = Set to TRUE to enable Rule
- Import Rules CSV
To import rules, from the Rules dashboard, click Advanced -> Import Rules From CSV