---
schema_version: "1"
id: d8f06a2cf75a3aa4fd681e649616b8fc25636d968c91c98b7a1bb35b894f6742
title: Using the Activity Library
collection: mulesoft
version: current
locale: en-us
portal_url: https://docs.salesforce.com/mulesoft/current/en-us/rpa-builder/6.6/activity-library.md
canonical_url: https://docs.mulesoft.com/rpa-builder/6.6/activity-library
source_site: docs.mulesoft.com
content_type: documentation
content_hash: 3b094acb40cbf786e04589ab1518f8f9b9a18eb1b61180461d5fef7ac0aaef3a
description: MuleSoft Documentation Site
release: "6.6"
latest: false
---
---
product: RPA Builder
version: 6.6
---

# Using the Activity Library

> For the full documentation index, see: https://docs.mulesoft.com/llms.txt

The Activity Library enables you to reuse certain activities that repeat during the automation of
business processes, such as a login, to avoid creating the same workflow multiple times.

Use the Activity Library Explorer to edit, copy, or delete activities and search for activities in
your organization’s library based on Activity Tags. You can export activities to a package file
`(.calw)` and import these activity package files into the Activity Library.

You can create Activity Tags and assign them to the activities for further categorization and
filtering capabilities.

## Before You Begin

- To open and to use the Activity Library, you need the **Activity Library Open** and **Activity
  Library Administration** privileges.

  For more information about assigning user privileges, see
  [Assign Privileges to a User](https://docs.mulesoft.com/rpa-manager/usermanagement-manage#assign-privileges-to-a-user).

## Upload an Activity to the Activity Library

To upload an activity to the Activity Library:

1.  In RPA Builder, open a process for editing.

2.  Click an activity to select it and open the context pad.

3.  In the context pad, click **Add to Activity Library**
    (![Add to Activity Library Icon](/mulesoft/current/en-us/rpa-builder/6.6/_images/add-to-activity-library-icon.png))

    ![The context pad of an activity](/mulesoft/current/en-us/rpa-builder/6.6/_images/context-pad.png)

4.  In the **Upload Workflow to Activity Library** window, provide a name and description for the
    activity.

    ![Upload Workflow to Activity Library window](/mulesoft/current/en-us/rpa-builder/6.6/_images/upload-workflow-to-activity-library.png)

    > [!IMPORTANT] Each activity must have a unique name, which cannot be longer than 60 characters.
    > Otherwise, RPA Builder cancels the upload and shows an error message.

5.  Click **Upload**.

## Import an Activity from the Activity Library

To import an activity from the Activity Library to your project:

1.  Select an activity in your project.

2.  In the context pad, click **Import Workflow from Activity Library**
    (![Import Workflow from Activity Library Icon](/mulesoft/current/en-us/rpa-builder/6.6/_images/import-workflow-from-activity-library-icon.png))

3.  Select the activity to import and click either **Add as a library reference** or **Add as a
    local copy**, depending on which method you want to use.

    - **Add as a library reference**

      This method creates a link in each process to an activity from the Activity Library. Because
      the activity is already saved in the library, it is not uploaded again. The activity
      automatically receives the name of the reference, and you cannot change the name in the BPMN
      editor. An activity with a referenced workflow shows a gray background in the task element.

      ![An activity showing a gray background to specify that it has a referenced workflow](/mulesoft/current/en-us/rpa-builder/6.6/_images/referenced-activity.png)

      If you import an activity from the Activity Library as a reference, the system checks whether
      the activity parameters contained in the activity fit the process. If the activity (or the
      workflow behind it) contains activity parameters that are missing in the process, you can
      either add these parameters to the process or cancel the import.

      You cannot import an activity that contains activity parameters that use the same name but a
      different data type as the activity parameters in the process.

    - **Add as a local copy**

      This method creates a local copy of the workflow behind the activity and inserts it into the
      project, which enables you to make changes. However, because there is no reference to the
      activity in the Activity Library, the local copy does not automatically update if the activity
      in the Activity Library changes.

## Change the Revision of a Referenced Activity

If the deployed revision of a referenced activity does not work properly in a process or if you
accidentally
[deployed the latest revision using RPA Manager](https://docs.mulesoft.com/rpa-manager/processoperations-upcomingprocesschanges#deploy-the-latest-version-of-an-activity),
follow these steps to revert the activity to an earlier or later revision:

1.  In the BPMN editor, click the referencing activity.

2.  On the context pad, click **Show Activity Log**
    (![The Show Log button](/mulesoft/current/en-us/rpa-builder/6.6/_images/activity-library-explorer-toolbar-show-log.png)).

3.  In the window **Activity Log**, select the revision to use. The link symbol shows the currently
    referenced revision.

4.  Click **Download**.

5.  In the window **A workflow is already mapped to this activity**, click **Yes** to replace the
    workflow with the selected revision.

## Convert Referenced Activities to a Local Copy

Creating a copy of a referenced activity enables you to modify the activity.

To create a local copy of a referenced activity:

1.  In the BMPN editor, double-click the referenced activity to copy.

2.  Click **Create Copy**.

After you click **Create a Copy**, the workflow behind the activity opens in the Workbench for
editing. Because the activity loses its reference, the next time you upload the activity, it is
treated as a new workflow.

## See Also

- [Activity Library Explorer](https://docs.mulesoft.com/rpa-builder/6.6/activity-library-explorer)

- [Activity Tags](https://docs.mulesoft.com/rpa-builder/6.6/activity-tags)
