Sync Salesforce opportunities to membership renewal process

Recipe ToolsCRMMarketingData ParserDocument/File

What it does

When a scheduled interval triggers, this automation searches Salesforce for opportunities matching a membership renewal query. It collects order numbers, contact IDs, and membership IDs from each result and logs them for the next step in the process.

Who it's for

RevOps teams who need to batch-process Salesforce opportunities on a schedule without manual intervention.

How teams use this

Batch-process renewal opportunities daily

Run the search every morning to find all opportunities ready for membership renewal, collect their IDs, and pass them to the next workflow step. The team sees consistent results without manual queries.

Route renewals to a Box folder

After collecting the opportunity data, add a step to create a summary file in Box with the order numbers and contact IDs. The renewal team can then access all records in one place.

Filter by membership tier with SOQL

Modify the SOQL query to only return opportunities where the membership tier matches a specific value. This lets the team run separate workflows for premium and standard renewals.

Send renewal summary to email

Add a step after logging to send the collected membership IDs and contact IDs to a distribution list. The renewal team gets a daily digest without checking the job report.

How it works

  1. Run on a scheduled interval. This automation starts at the specified time or frequency to search for membership renewal opportunities in Salesforce.
  2. Search opportunities with SOQL query. Query Salesforce for opportunities that match the membership renewal criteria, returning a batch of records to process.
  3. Extract order numbers and IDs from results. Loop through each opportunity returned from Salesforce and collect the order number, contact ID, and membership ID into separate lists for downstream use.
  4. Log results to job report. Write the collected order numbers, contact IDs, and membership IDs to the job report so the next process step can access them.