---
schema_version: "1"
id: 580b60cf1ae28a648179e26280938c7377a87e40f16e7e36eb7b62b240d2dbdf
title: Connecting a Flow
collection: mulesoft
version: current
locale: en-us
portal_url: https://docs.salesforce.com/mulesoft/current/en-us/composer-salesforce/ms_composer_connecting_a_flow.md
canonical_url: https://docs.mulesoft.com/composer-salesforce/ms_composer_connecting_a_flow
source_site: docs.mulesoft.com
content_type: documentation
content_hash: 4bacbd944c52c4ab19b735bbd9dcec9a0f2e25b9f31e0a20cb69881323426a79
description: MuleSoft Documentation Site
latest: true
---
---
product: Composer for Salesforce
---

# Connecting a Flow

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

A _connection_ in Composer is a configuration that uses a connector and associated user or system
credentials to connect to a system. You can use connections at different steps to perform specific
tasks, such as connecting to a system, checking for triggers, and retrieving or manipulating data.

## Change a Connection

You can change connections in a trigger or action for all steps (at the flow level) or for
individual steps. For example, you can create a flow using connections to a Salesforce sandbox org,
and then after your flow testing is complete, you can change the connection in your trigger and
actions to use a production org.

You can only change to a connection accessing the same system type. You can’t change a Workday
connection to a Google Sheets connection, for example.

To change a connection:

1.  Open the flow.

2.  Click the change icon in the trigger or action that connects to a sandbox:

    ![A button that says Change the Connection](/mulesoft/current/en-us/composer-salesforce/_images/images/change-connection.png)

3.  Change the connection to an existing connection or to a new connection.

    - If you change the connection to an existing connection:

      1.  Select the connection to change to.

      2.  Optionally, if you want to change the connection for all steps that use this specific
          connection, select **Change all instances of XXX to XXX in this flow**.

      3.  Click **Change**.

      4.  Click **Confirm**.

    - If you change the connection to a new connection:

      1.  Click **Add New (Connector Name) Connection**.

      2.  Enter a value for the **Connection Display Name** field.

      3.  Optionally, if you want to change the connection for all steps that use this specific
          connection, select **Change all instances of current connection to the new connection in
          this flow**.

      4.  Click **Connect**.

      5.  In the dialog box, log in to the system and allow access.

## Repair a Connection

If your OAuth connection is lost, you can repair the connection by refreshing the access token.

To repair a connection:

1.  Open the flow.

2.  Click **Edit**.

3.  Click the change icon in the trigger or action that requires repair, and then click **Change
    Connection**.

4.  Click **Repair**.

## Delete a Connection

If you no longer need a specific connection, you can delete it.

To delete a connection:

1.  [Create a new flow](https://docs.mulesoft.com/composer-salesforce/ms_composer_using_a_flow_and_creating_trigger#create-a-flow) or add a step
    to an existing flow.

2.  If you create a new flow:

    1.  Select the connector or system to start your flow.

    2.  In the **What Should Start This Flow?** window, click the gear icon.

3.  If you add a step to an existing flow:

    1.  Select the connector or system to start your flow.

    2.  In the **Next Step** window, click the gear icon.

4.  In the **Manage <Connector Name> Connections** window, next to the connection that you want to
    delete, click the trashcan.  
    A message appears ensuring that you want to delete the selected connection. A window appears,
    displaying a list of flows currently using that connection. If the connection is:

    - Not used in any flows, you can delete the connection.

    - Used in inactive flows, a list containing the name and count of inactive flows using this
      connection appears. Deleting this connection will affect the listed flows. If you reopen the
      inactive flow, you must [select a new connection](#change-a-connection).

    - Used in active and inactive flows, a list containing the name, count, and status of active and
      inactive flows using this connection appears. If you choose to delete the connection,
      secondary confirmation appears. Prior to deleting the connection, Composer will first attempt
      to stop the flows.

5.  Click **Delete**.  
    The connection is deleted.

## See Also

- [Mulesoft Composer for Salesforce: Overview](https://docs.mulesoft.com/composer-salesforce/ms_composer_overview)

- [MuleSoft Composer for Salesforce: Getting Started](https://docs.mulesoft.com/composer-salesforce/ms_composer_prerequisites)

- [Composer Connector Reference](https://docs.mulesoft.com/composer-salesforce/ms_composer_reference)

- [Knowledge Articles](https://help.salesforce.com/s/)
