Hi everyone,
I'm hoping someone can provide some insight into an issue I'm having while trying to connect MuleSoft Composer to our Salesforce instance via the HTTP connector.
The standard, out-of-the-box Salesforce connection works fine, but the goal is not to perform a normal CRUD function. I need to use the HTTP connector specifically to run a POST query with a JSON body against a custom solution that sits on top of our Salesforce instance.
We have confirmed the API call and authentication work perfectly in Postman, Salesforce Inspector, and Workbench. The issue appears to be isolated to MuleSoft Composer.
I've followed the following MuleSoft documentation for the HTTP connection but am consistently getting an error stating the scope is disallowed.
https://docs.mulesoft.com/composer/ms_composer_http_reference
Here are the details of my configuration:
- Scope Entered in Composer: full refresh_token
- Scopes in Salesforce External Client App:
- Manage user data via APIs (api)
- Full access (full)
- Perform requests at any time (refresh_token, offline_access)
As you can see, the full and refresh_token scopes required by Composer have been granted in the Salesforce External Client App's OAuth settings.
I have an open case with Salesforce support, but I wanted to ask this community if anyone has encountered this specific "scope is disallowed" error before and might know how to resolve it.
Any help would be greatly appreciated.
Thank you!
Hello everyone,
It appears the issue was caused by the "full" scope. Even though this scope was assigned to the external connected app, it was preventing the connection from being established. By changing the scope to "refresh_token API", I was able to build the connection successfully. I will now test it to ensure my POST query executes as expected.