This article shows you how to integrate Documo with Salesforce, create or update a lead, and send documents to your Salesforce instance.
Before processing your documents, learn more about Workspaces and Intelligent Document Processing.
Integration
Step 1: Create the New External Client App
Click New External Client App, enter an app name, and provide the appropriate contact email address.
NOTE: Do not add parenthesis in the app name or it will not be accepted.
Step 2: Configure OAuth Settings and Scopes
Expand API (Enable OAuth Settings), check Enable OAuth, enter https://app.documo.com for the Callback URL, and add Full access (full) and Manage user data via APIs (api) to the Selected OAuth Scopes.
Step 3: Enable Client Credentials Flow and Web Server Secret
Check Enable Client Credentials Flow, confirm the popup that appears, and ensure Require secret for Web Server flow is enabled, then click Create.
Step 4: Review OAuth Policies
Open the newly created app, click the Policies tab, then scroll down to review the OAuth Policies settings.
Step 5: Edit Policies and Set Run As (Username)
Click Edit, check Enable Client Credentials Flow if it is not already enabled, enter a username under Run As (Username), and click Save.
NOTE: It's recommended to use a service account so that a disabled Salesforce user won't disturb the integration.
Step 6: Open the Salesforce Integration Setup
Locate the Salesforce card on the Documo integrations page and click Setup.
Step 7: Configure Salesforce Credentials in Documo
Enter the Instance URL according to your environment:
- https://login.salesforce.com for most prod
- https://test.salesforce.com for most sandbox
- https://XXXXXXX.develop.my.salesforce.com for dev editions
Consumer Key and Consumer Secret can be found in the External app.
Then copy your client key from the External Client App and paste it into Documo.
Next, copy your client secret from the External Client App and paste it into Documo.
When all values are entered, click Continue to proceed.
Step 8: Map Fields for Upload and Lead Actions
For the Upload Document option, map your Documo fields to the appropriate Salesforce fields.
Repeat the same field-mapping process for Create Lead, ensuring all necessary fields are mapped correctly.
Do the same for Update Lead, mapping each required field between Documo and Salesforce.
Processing
Step 9: Process a Document to Send to Salesforce
Go to your workspace to process the document you want to send to Salesforce.
Select the document you would like to process, then click Process.
Review and verify the information extracted or entered for the document. Navigate to Send to begin the Salesforce send flow.
Upload your document if it is not already attached. You can now choose whether to create a new lead or update an existing lead in Salesforce.
To update an existing lead, search for the lead, select it from the results, and update the fields you would like to change. Then click Send to complete the update.
If you have any other questions, please reach out to support@documo.com.