Sync Salesforce opportunity changes to Box on schedule

CRMMarketingRecipe ToolsDocument/File

What it does

On a specified interval, this automation queries Salesforce for opportunity field history records using a SOQL WHERE clause. It checks a lookup table and accumulates matching records to prepare them for storage or further processing.

Who it's for

Sales operations teams who need to track Salesforce opportunity changes on a regular cadence without manual review.

How teams use this

Track opportunity stage changes weekly

Run the SOQL search every week to find opportunities where the stage field changed, then accumulate those records in a list for reporting. The lookup table controls whether the data moves forward based on system status.

Monitor deal updates across regions

Adjust the SOQL WHERE clause to filter by region or owner, so each team sees only their opportunity changes. The automation structure stays the same and only the query changes.

Add email notification on high-value changes

Include a condition to check if the opportunity amount exceeds a threshold, then send an email alert when that record is found. Set up the email step to trigger only when the amount condition is met.

How it works

  1. Search opportunity field history on schedule. On a specified interval, query Salesforce for opportunity field history records using a SOQL WHERE clause to find changes that match your criteria.
  2. Check the FileData status lookup table. Look up a single entry in the FileData_Append_Status lookup table to determine if processing should continue based on the error flag value.
  3. Accumulate matching opportunity records. Loop through each opportunity field history record and add matching items to a PrimaryContact list so this automation can prepare them for the next step.
  4. Store the accumulated data in Box. Send the compiled list to Box based on the lookup table result and the presence of opportunity field history records from Salesforce.