What the Integration Does
Link documents to Salesforce records
Pass a Salesforce Opportunity, Account, or Contact ID at upload time. The document is permanently associated with that CRM record and the reference travels through the entire processing pipeline.
Push extracted data to Salesforce
When a document is exported, an automation scenario reads the extracted fields and updates the corresponding Salesforce record — deal amounts, close dates, contact details, and any custom fields.
Post AI summaries as Chatter notes
The AI summary from each processed document is posted to Salesforce as a Chatter post or Activity Note on the associated record — giving your team instant context without opening RecordEngine.
Deep-link back to the document
The direct URL to each document in RecordEngine is stored on the Salesforce record. Your team jumps from an Opportunity straight to the full document, extracted fields, and approval status in one click.
How It Works — The Two Scenarios
The Salesforce integration uses two automation scenarios that work together: Scenario A — Salesforce → RecordEngine A trigger in Salesforce (stage change, new attachment, scheduled) causes a document to be uploaded to RecordEngine with the Salesforce record ID attached. Scenario B — RecordEngine → Salesforce When RecordEngine exports a document, the outbound webhook fires and an automation updates the corresponding Salesforce record with the extracted data.Step 1 — Connect Salesforce in Your Automation Platform
Connect your Salesforce org using the native Salesforce connector in your automation platform. You’ll need:- Salesforce account with API access (Professional edition or above)
- Admin or API-enabled user profile
- OAuth connection authorised through your automation platform
Step 2 — Build Scenario A (Salesforce → RecordEngine)
This scenario uploads documents to RecordEngine automatically when triggered by a Salesforce event. Trigger: Salesforce — Watch Records (e.g. Opportunity Stage changed to “Proposal Sent”) Action 1: Salesforce — Get Related Files Retrieve any attachments linked to the triggering Opportunity. Action 2: Salesforce — Download Attachment Download the file content for each attachment. Action 3: HTTP — POST to RecordEngine Upload APIdocument_id on the Opportunity (in a custom field) so you can look it up later.
Step 3 — Build Scenario B (RecordEngine → Salesforce)
This scenario receives the RecordEngine outbound webhook and updates Salesforce when a document is approved and exported. Trigger: Webhooks — Custom Webhook Copy the generated URL and paste it into RecordEngine Settings → Document Webhook URL. Action 1: Parse the incoming webhook payload Action 2: Salesforce — Update Record- Object: use
external_refs.salesforce.record_typefrom the payload (e.g.Opportunity) - Record ID: use
external_refs.salesforce.record_id - Map extracted fields to Salesforce fields (see field mapping table below)
- Set the body to
ai_summaryfrom the payload - Associate it with the record using the same record ID
- Map
doc_urlfrom the payload to a custom URL field on the Opportunity (e.g.RecordEngine_Document_URL__c)
Salesforce Field Mapping Reference
Salesforce custom field API names end with
__c. To create a custom URL field on Opportunity: Setup → Object Manager → Opportunity → Fields & Relationships → New → URL field type.Setting Up the Custom Fields in Salesforce
Create these two custom fields on your most-used object (typically Opportunity) to get full value from the integration: RecordEngine Document URL — stores the deep-link back to the document:- Setup → Object Manager → Opportunity → Fields & Relationships → New
- Data Type: URL
- Field Label:
RecordEngine Document - Field Name:
RecordEngine_Document(API name becomesRecordEngine_Document__c) - Add to the Opportunity page layout
- Repeat above with Data Type: Number, decimal places: 0
- Field Label:
RE Confidence Score - Field Name:
RE_Confidence_Score(API name:RE_Confidence_Score__c)
Testing the Integration
1
Test Scenario B first
Use webhook.site temporarily as your webhook URL. Export a document in RecordEngine and inspect the exact payload — confirm all field names and the
external_refs structure.2
Switch to your automation platform
Replace the webhook.site URL with your automation platform’s incoming webhook URL. Re-export the same document and confirm the scenario executes without errors.
3
Verify the Salesforce update
Open the Salesforce Opportunity that was referenced in
external_refs. Confirm the extracted fields updated correctly and the document URL is saved.4
Test Scenario A
Trigger the Salesforce event (e.g. move an Opportunity to the watched stage). Confirm a document upload appears in RecordEngine within 30 seconds.
Troubleshooting
For more help see Integration Troubleshooting.