Can not add credentials for a Salesforce *sandbox*

Describe the problem/error/question

I am using the ‘Salesforce’ node and would like to connect it with our Salesforce Sandbox.
When adding the OAuth credentials, I am offered to choose the option for ‘Sandbox’.
But clicking on the “connect my account” button, opens the production endpoint (“login.”). The endpoint for sandboxes is “test.”.

This bug was reported previously in two different discussions, but is still open:
[1] Option to connect to sandbox instance (Salesforce) [GOT CREATED] - #12 by RicardoE105
[2] Salesforce Sandbox OAuth2 connection - #12

I am using the public cloud version of n8n.

It looks like your topic is missing some important information. Could you provide the following if applicable.

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:

Welcome to the community @Hannes !

Tip for sharing information

Pasting your n8n workflow


Ensure to copy your n8n workflow and paste it in the code block, that is in between the pairs of triple backticks, which also could be achieved by clicking </> (preformatted text) in the editor and pasting in your workflow.

```
<your workflow>
```

That implies to any JSON output you would like to share with us.

Make sure that you have removed any sensitive information from your workflow and include dummy or pinned data with it!


That is interesting. When trying on self-hosted n8n instance the request goes to Sandbox URL but in n8n Cloud it goes to Production.

We will look into it.

Thanks!
When will the fix be available? I am waiting for it to set up an integration.
Can you provide a workaround meanwhile?

P.S. for some subscribers it’s needed to be able to enter their custom domain, instead of the two generic endpoints that Salesforce provides.
(For example if they have set up SSO.)
Just as a general feedback, that this might come up (if it hasn’t already…)
https://help.salesforce.com/s/articleView?id=sf.remoteaccess_oauth_endpoints.htm&type=5

Hey @Hannes , there is no update yet.

As for the custom domain, it would rather be a feature request. The current implementation does not cater for it.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.