MeshMesh
Guides

Connecting a Salesforce Org

Connect your Salesforce org to MeshMesh using one of three OAuth methods

MeshMesh connects to Salesforce using OAuth. You authenticate through your browser — no passwords are stored. There are three ways to connect, depending on your setup.

Quick Connect (Preferred)

The fastest way to connect — just click and go.

No admin setup or package installation required. Your Salesforce user just needs API permissions (enabled by default for most profiles).

Connect from MeshMesh Studio

Open MeshMesh Studio desktop → Connections → select Quick Connect → click Connect.

Authorize in browser

Sign in through the browser and approve access. Done.

If your org requires specific OAuth credentials or scopes, use the Custom Connected App method below.

Custom Connected App

For orgs that require their own OAuth credentials or specific scopes.

Use this method if your org has restrictions on third-party apps or you need fine-grained control over OAuth scopes.

Create a Connected App in Salesforce

In Salesforce Setup, go to App ManagerNew Connected App. Configure the following:

  • Enable OAuth Settings: Check this box
  • Callback URL: http://localhost:1717/OauthRedirect
  • OAuth Scopes: Add at minimum:
    • api
    • refresh_token
    • offline_access
    • web

Add full or other scopes as needed for your use case.

Enable Client Credentials Flow

In the connected app settings, check the box for Enable Client Credentials Flow.

Disable PKCE

In the connected app's Security settings, uncheck "Require Proof Key for Code Exchange (PKCE) Extension for Supported Authorization Flows".

Copy credentials

Save the Consumer Key (Client ID) and Consumer Secret from the connected app settings.

Enter credentials in MeshMesh Studio

Open MeshMesh Studio desktop → Connections → select Custom Connected App → expand OAuth Scopes & Credentials → enter your Client ID and Client Secret.

Connect and authorize

Click Connect, sign in through the browser, and approve access.

Use this method if your org blocks third-party connected apps or if you need fine-grained control over which OAuth scopes are granted.

MeshMesh Connected App (Pre-release, Supported Clients Only)

This method is currently in pre-release and only available to supported clients. It may change in future releases.

Best for teams — no setup needed.

The MeshMesh Connected App method uses a managed package that installs an External Client App (ECA) in your Salesforce org. An admin installs it once, then everyone in the org can connect.

Install the MeshMesh Studio package

A Salesforce admin installs the MeshMesh Studio package in the target org. Choose "Install for All Users" when prompted.

Use the URL that matches the org you're installing into — only the host differs, the package id is the same everywhere:

Log into the target org in your browser before opening the install URL. If you're signed into a different org, the package lands there instead.

Enable the External Client App

In Salesforce Setup, go to External Client App Manager, find MeshMesh Studio, and click Enable.

Connect from MeshMesh Studio

Open MeshMesh Studio desktop → Connections → select MeshMesh App as the connection method → click Connect.

Authorize in Salesforce

Sign in through the browser and approve access. You'll be redirected back to MeshMesh Studio.

The package install and enable steps are one-time admin setup. After that, any user in the org can connect without additional configuration.

Sandbox & Custom Domains

MeshMesh supports production orgs, sandbox orgs, and custom domains (My Domain). Two things have to match the org you're connecting to: the package install URL (see the install step above) and the environment picker in the Connections modal.

For sandbox orgs: Select Sandbox in the environment picker before connecting. This directs authentication to test.salesforce.com. Make sure you installed the package via the sandbox install URL — https://test.salesforce.com/packaging/installPackage.apexp?p0=04tfj000000GGiLAAW — not the production one.

For custom domains: Select Custom Domain and enter your instance URL (e.g., https://MyDomain--SandboxName.sandbox.my.salesforce.com). The package install URL needs to use that same host:

https://<your-my-domain-host>/packaging/installPackage.apexp?p0=04tfj000000GGiLAAW

If you install the package in production but pick Sandbox (or vice versa) when connecting, OAuth fails with "grant type not supported" — the auth code was issued by one host and the token endpoint can't redeem it on another.

Troubleshooting

"External client app not installed" — Install the MeshMesh Studio package in your org and enable it in Setup → External Client App Manager. Use the install URL matching your environment:

"Grant type not supported" — The package was installed in a different org than the one you're trying to connect to (e.g. installed in production but connecting to a sandbox). Either install the package in the right org using the URL matching your environment above, or change the Environment selector in the Connections modal to match where the package is installed.

"Cross-org OAuth error" — The MeshMesh Studio package must be both installed and enabled in the org you're connecting to. Go to Setup → External Client App Manager → MeshMesh Studio → Enable.

"Authorization failed" — Verify that your External Client App or Connected App has the required OAuth scopes (api, refresh_token, offline_access, web).

"Salesforce CLI required" — Alternatively, use the Custom Connected App or MeshMesh Connected App method instead.

Connection timeout — Check your network and firewall settings. Ensure your browser can reach login.salesforce.com (or test.salesforce.com for sandboxes).