Short answer: check the built-in quota tools first. If your targets need your own rules, a small set of custom objects, kept up to date by flows, gives you live figures you can report on. For partner leads, record the source at the start and carry it all the way through.
Check the built-in option first
Salesforce Pipeline Forecasts lets you set quotas by forecast period and forecast type, shows progress against them, and can calculate the gap to quota. If that answers your question, use it: there is less to maintain.
A custom build earns its keep when targets change according to your own rules, when people need month, quarter and year side by side in a layout of your choosing, or when other processes depend on the numbers.
Part 1: sales against target
Two custom objects keep what you intended apart from what happened.
| Object | One record per | Holds |
|---|---|---|
| Sales Target | Person and period | Period type and dates, target amount, whether it was set automatically or by hand |
| Sales Metrics | Person and period | Link to the target, closed-won total, amount still needed, percentage achieved, when last calculated |
Then three flows:
- Open each period. A scheduled flow creates the records for the coming month, quarter or year. Where targets adjust automatically, for example in line with earlier performance, it does the sum here. A target someone has edited by hand is marked and left alone.
- Keep it live. A flow triggered by changes to opportunities recalculates when a deal is won or reopened, or its amount, close date or owner changes. Recalculate both the old and the new person or period.
- Check it overnight. A second scheduled flow recalculates current periods, to catch anything the live flow missed, such as deleted records.
Total the opportunities again each time instead of adding to and subtracting from a running figure, which drifts. “Still needed” is target minus closed-won, shown as zero once the target is met, with any excess reported separately.
Part 2: leads from contractors and partners
The aim is an unbroken line from “who brought this in” to “what became of it”.
- A record of the source: each contractor or partner organisation, and whether the arrangement is active.
- A lead generation record for each introduction: source, lead, date received, status and, later, the opportunity.
- Carry it through conversion. Custom lead fields can be mapped to opportunity fields, so the source is not lost when a lead is converted.
- Follow the outcome. A flow updates the lead generation record as the opportunity moves, and flags it for review when it is won. Keep a person between “won” and “paid”.
Settle the rules before the first claim: what happens when two sources introduce the same person, how long a claim lasts, what counts if your own team already knew them, and what happens when a won deal is reopened. Limit who can see commission details.
Building it so it keeps working
- Use a before-save flow to change fields on the record that triggered it, and an after-save flow to change other records.
- Scheduled paths suit actions due at a future date, such as chasing an introduction that has gone quiet. Salesforce’s Trailhead unit sets out the timing options.
- Give every flow a path for failures that tells a named person.
- Build and test in a sandbox, and write down what each flow does and which fields it changes.
Reports and dashboards
Report on the metrics and lead generation records. Show month, quarter and year next to each other, and conversion by source. Before sharing, check who each dashboard runs as, so people see the figures they should and no more.
Test these before anyone relies on it
- A won deal that is reopened.
- A close date moved into another quarter.
- A change of owner, and a deleted opportunity.
- A bulk import of several hundred records.
- A hand-edited target surviving the next recalculation.
- A converted lead that still shows its source.
- One closed month reconciled by hand against finance.
See the reporting case study for the work this draws on.
Sources
- Salesforce Trailhead: forecast and quota setup
- Salesforce Trailhead: record-triggered flows
- Salesforce Architects: record-triggered automation
- Salesforce developers: lead conversion settings
Checked 26 November 2026. These products change often, so confirm anything important against the current documentation.
Want live figures you can trust?
If targets live in a spreadsheet and partner leads in someone’s inbox, a short call is the place to start.

