You are here:
Make a MuleSoft RPA Process Available to Flows
Configure the connection between MuleSoft Anypoint platform and your org to import MuleSoft RPA APIs. Then, register the APIs as an external service to use them in flows.
Required Editions
| Available in: Lightning Experience |
| View supported editions. |
Before you can make a MuleSoft RPA process available to flows:
- In MuleSoft RPA Manager, publish the RPA process as a REST API to Anypoint Exchange.
- In MuleSoft RPA Manager, create an API key for yourself and store it in a secure place. Optionally, copy the API key to use it in the creation of an external credential.
- In Salesforce, create and assign a permission set that enables users to invoke this MuleSoft RPA process in a flow.
- Connect Salesforce to MuleSoft Anypoint Exchange from Setup, create the initial connection between MuleSoft Anypoint platform and your org.
-
Create an external credential for
authenticating to MuleSoft RPA Manager with these values. The external
credential details how Salesforce authenticates to MuleSoft RPA Manager. You
link the external credential to a user’s permission set and to the named
credential that specifies the URL for MuleSoft RPA Manager.
Section Value Label A user-friendly name for the external credential that’s displayed in the Salesforce user interface, such as in list views. Name A unique identifier that’s used to refer to this external credential from callout definitions and through the API.
The name can contain only underscores and alphanumeric characters. It must be unique, begin with a letter, not include spaces, not end with an underscore, and not contain two consecutive underscores.
Authentication Protocol Custom Principals Create a principal with these values.
- Sequence Number
- 1
- Authentication Parameters
- Add an authentication parameter whose value is the API key that you created before in RPA Manager. You use the name of the authentication parameter in the custom header for this external credential.
Custom Headers Create a custom header with these values.
- Name
- x-apikey
This value is case-sensitive.
- Value
- {!$Credential.External_Credential_Name.RPA_API_Key}
External_Credential_Name is the name of the external credential.
RPA_API_Key is the name of the authentication parameter that you created to store the API key that you created before in RPA Manager.
- Sequence Number
- 1
- Enable the external credential principals using the permission set you created to enable users to invoke this RPA process.
-
Create a named credential that stores
the URL for MuleSoft RPA Manager.
You link the named credential to the external credential you created in the previous step.
Section Value Label A user-friendly name for the named credential that’s displayed in the Salesforce user interface, such as in list views. Name A unique identifier that’s used to refer to this named credential from callout definitions and through the API.
The name can contain only underscores and alphanumeric characters. It must be unique, begin with a letter, not include spaces, not end with an underscore, and not contain two consecutive underscores.
URL Your MuleSoft RPA Manager URL, for example, https://myOrg.rpa.mulesoft.com. External Credential Select the external credential that you created in the previous step. Generate Authorization Header Deselect this option. Allow Formulas in HTTP Header Select this option. - Import the MuleSoft RPA API into Salesforce and use the named credential you created in the previous steps in the Import Service window.
- Select the startProcess and getProcessExecutionStatus operations for the MuleSoft RPA API.
Use the MuleSoft RPA process in a flow.

