Why am I encountering the error "{'domain': ['not allowed for this app']}" when using the proxy for Salesforce with remote MCP in Pipedream's managed accounts?

This topic was automatically generated from Slack. You can find the original thread here.

I am using remote managed accounts as per Managed Auth Quickstart - Pipedream and while remote MCP is working fine, I am struggling with the proxy Connect API Proxy - Pipedream for salesforce. It seems like I am authenticating okay, but then I get {'domain': ['not allowed for this app']}. I cannot find any documentation on the exact meaning of this error. I realize that salesforce uses a dynamically generated domain (Sandbox = test.salesforce.com, Production = login.salesforce), And I am using a sandbox account, but I cannot find any helpful document on how to move forward or what the root cause actually is.

Check out this section of the docs: Connect API Proxy - Pipedream

If you retrieve the app info for salesforce, you’ll see

      "connect": {
        "allowed_domains": null,
        "base_proxy_target_url": "https://{{custom_fields.instance_url}}",
        "proxy_enabled": true
      }

which indicates you should pass just the relative path as the url and not the full domain, since you likely may not know it.

Thank you! I got it working. It would be great if there was an example of how to use this with Salesforce. It took quite a bit of trial and error to get it right.

What was the tricky part, specifically what I showed? The URL?