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.
Step 2: Configure OAuth Settings and Scopes
Expand API (Enable OAuth Settings), check Enable OAuth, enter the required callback URL, and add Full access and Manage user data via APIs 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.
Step 4: Create the App and Correct the API Name
Click Create. If you receive a validation message about the API Name, edit the API Name field to remove any parentheses (for example, change Documo_(Test) to Documo_Test), then click Create again to successfully create the app.
Step 5: Review OAuth Policies
Open the newly created app, click the Policies tab, then scroll down to review the OAuth Policies settings.
Step 6: 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.
Step 7: Open Your User Profile to Find Your Username
After receiving an error related to the Run As (Username) value, go to your user profile from the top-right user menu to locate your correct username. Open the profile details so you can copy the exact username.
Step 8: Open the Salesforce Integration Setup
Locate the Salesforce card in Documo and click Setup to open the integration configuration panel.
Step 9: Configure Salesforce Credentials in DocuFlow
From Salesforce, copy your instance URL and paste it into the corresponding field in DocuFlow.
Then copy your client key from Salesforce and paste it into the Client Key field in DocuFlow.
Next, copy your client secret from Salesforce and paste it into the Client Secret field in DocuFlow.
When all values are entered, click Continue to proceed.
Step 10: 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 DocuFlow and Salesforce.
Processing
Step 11: 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.