Automation architecture
Choose Salesforce Flow or Apex for renewal reminders, then test repeat runs, bulk updates, and failure recovery.
Customer Success wants a task when a subscription is Active and reaches 60 days before renewal. Billing may update the date twice in a week and correct older records in a bulk job. If every update makes a task, a CSM can receive three copies for one renewal. Start by giving the reminder its own identity and check whether the subscription still qualifies at the moment the reminder runs.
- ScheduleCheck active subscriptions within 60 days of renewal.
- Reminder keyLook up the unique subscription and term combination.
- One taskCreate the work record and its task when this term has no reminder.
Separate the event from the record change
The billing connector owns the renewal date and status. Keep those values on Billing_Subscription__c and scope the immediate flow to fields that actually drive the CRM response. A before-save flow can fill a field on the triggering record without another update. Use an after-save flow for related records, and keep discretionary notifications out of the synchronous path when they can wait. If you already have several flows on the object, trace their write paths using the Salesforce Flow order guide.
Pick how the renewal work gets scheduled
| Need | Native option | Check before activation |
|---|---|---|
| Create a reminder relative to one record’s end date. | Use an after-save record-triggered flow with a scheduled path 60 days before the end date. | Confirm Default Workflow User, check pending runs in Time-Based Automations, and recheck status and date before creating work. |
| Catch subscriptions first loaded inside the 60-day window. | Use a daily schedule-triggered flow over active subscriptions ending in the next 60 days. | Limit the Start filter and review scheduled flow volume. Share the reminder key with any other entry path. |
| Apply more complex rules across large subscription batches. | Use a bulk-aware Apex design when volume or transaction requirements justify it. | Test against a representative batch and keep queries and writes out of record loops. |
Everline uses the daily flow because the requirement is to catch imports and date changes by the next morning. It reads the current subscription state during the run. When the first $72,000 subscription enters the window, the flow creates a renewal work record keyed by subscription ID and billing term ID, then associates the task to the work record. The term ID stays the same when Finance corrects the renewal date. On the next run, the existing work record prevents a second task. A new billing term can qualify separately.
Protect the reminder against repeat runs and partial saves
Enforce the key as unique on the work object. Keep work creation and task creation in one transaction, and let unexpected task faults fail the save so a retry does not skip an incomplete work record. If the integration attaches a task after commit, record pending and completed outcomes and make the retry check the current task before creating another.
Use native Flow Builder tests for condition logic where available, then exercise the actual schedule in a sandbox. Load two subscriptions inside the window, change one end date within the same term, and cancel the other before the first run. Expect one task for the still-active term, zero for the canceled subscription, and no new task on the second run. Import 200 eligible records to see how the deployed design behaves under load. Track the input count, existing work matches, new work created, and failures. If the numbers do not add up, pause the next run and reconcile the missing keys using the integration guide.
Keep reading
All guides →Object & data model
How the standard objects, record types, and custom fields fit together, plus the grain rules and relationship choices that decide whether reporting ever ties out.
ArchitectCPQ & quote-to-cash
How quotes, price books, approvals, and billing connect into one revenue chain, plus the config choices that decide whether a signed deal actually invoices correctly.
ArchitectIntegrations & data flow
How systems sync without corrupting each other, plus the ownership, idempotency, and error-handling rules that keep a two-way integration from overwriting the truth every fifteen minutes.