Unified.to
All articles

SalesForce (External Client Apps) on Multiple Organizations


April 15, 2026

This guide will walk you through the required steps to support using a Salesforce External Client App (ECA) across multiple organizations. When an ECA is created in Salesforce, it can only connect to users within the organization that created it. To allow the ECA to be used across multiple organizations, you must complete the required setup steps before it can connect to users outside the original organization.

  1. The first thing you need to do is create an app within Salesforce. If you have already done this proceed to step 2, otherwise check out our how to guide.
  2. In the SalesForce Dev Hub > Settings > Setup > Dev Hub, enable both 'Enable Unlocked Packages and Second-Generation Managed Packages' and 'Enable Dev Hub'
    Screenshot_2026-04-15_at_1.44.39_PM.png
    Screenshot_2026-04-15_at_3.37.45_PM.png
  3. Install SalesForce CLI
  4. Generate a SalesForce project
    sf project generate --name unified-sf
    
  5. Navigate into project
    cd unified-sf
    
  6. Login to your Source organization, this is the organization where you have created the External client app
    sf org login web --alias SourceOrg
    
  7. Login to your target organization, the organization you want to install the app on
    sf org login web --alias TargetOrg
    
  8. Retrieve the app metadata
    sf project retrieve start --metadata ExternalClientApplication:Unified --target-org SourceOrg
    sf project retrieve start --metadata ExtlClntAppOauthSettings --target-org SourceOrg
    
  9. Deploy the app onto your target organization
    sf project deploy start --metadata ExternalClientApplication:Unified --target-org TargetOrg
    sf project deploy start --metadata ExtlClntAppOauthSettings:Unified_oauth --target-org TargetOr
    
  10. A connection can now be created in the Target org
All articles