Create the Salesforce app
The plugin connects through an External Client App in your Salesforce org (a Connected App also works).
- In Salesforce open Setup > App Manager > New External Client App.
- Enable OAuth Settings and select the scopes Manage user data via APIs (api) and Perform requests at any time (refresh_token, offline_access).
- Paste the Callback URL from the plugin's Getting Started tab. It ends with
admin-post.php?action=wpas_salesforce_callback. It must match exactly. - For the no-login method, also tick Enable Client Credentials Flow in the app's Settings tab and enter your Salesforce username under Run As (Username) in the Policies tab.
- Copy the Consumer Key and Consumer Secret. Keep the secret private.
Your Salesforce screens may be named a little differently between Salesforce releases. The plugin's Getting Started tab shows the same steps.