CPQ and revenue
CPQ settings
Enable CPQ modules, configure subscription and invoice behavior, and define automation triggers that create downstream records when commercial milestones are reached.
Where CPQ settings live
Go to Setup () → CPQ Settings. This is a single workspace-wide configuration. Changes take effect immediately for all users.
Module enable flags
Each CPQ object type is individually enabled. Quotes are always on. Enable the others to unlock those object types across the workspace:
- Orders — enables the Order object and all Order-related automation triggers.
- Contracts — enables the Contract object and Contract-related triggers.
- Subscriptions — enables the Subscription object. Requires Orders or Contracts to be enabled first. Subscriptions are created automatically per recurring-billed product line when the corresponding trigger fires.
- Invoices — enables the Invoice object. Requires Orders or Contracts to be enabled.
Disabling a module does not delete existing records — it hides the object from the UI and prevents automation triggers from firing for it. Existing data is preserved.
Subscription settings
When Subscriptions are enabled, configure how they are created and managed:
- Allow Order source / Allow Contract source — controls which record types can produce Subscription records via automation. At least one must be allowed.
- Require Order / Require Contract — makes the corresponding field required on every Subscription record workspace-wide. Turning either on immediately updates the field definition across all Subscription records.
- Active Status Value — the picklist value (default: Active) the system sets on new subscriptions whose start date is today or in the past. Subscriptions with a future start date receive the Draft status value instead.
- Expired Status Value — the value used by renewal automation when a subscription's end date passes.
- Draft Status Value — the value set on future-dated subscriptions at creation.
Invoice settings
When Invoices are enabled:
- Allow Order source / Allow Contract source — controls which record types can produce Invoice records. At least one must be allowed.
- Due Date Offset (days) — automatically sets
Invoice.DueDate = today + N dayswhen an invoice is created (for example 30). Leave it blank and no due date is filled in automatically. - Paid Status Value — the picklist value (default: Paid) the system recognizes as indicating a paid invoice. Used by reporting and automation.
- Overdue Status Value — the picklist value (default: Overdue) used to flag past-due invoices.
CPQ automation triggers
Triggers automate the creation of downstream CPQ records when a source record reaches a defined state. Each trigger watches one object and creates records in another. Available triggers:
- Opportunity → Quote
- Quote → Order, Quote → Contract
- Opportunity → Order, Opportunity → Contract
- Order → Invoice, Contract → Invoice
- Order → Subscriptions (one per Recurring product line), Contract → Subscriptions
Each trigger is independently enabled or disabled. Configure each with:
- Fire Mode:
- On Create — fires once when the source record is first created, regardless of conditions. Cannot use
is_changedconditions in this mode. - All Conditions Match — fires on update when all configured conditions evaluate to true. Requires at least one condition with the
is_changedoperator.
- On Create — fires once when the source record is first created, regardless of conditions. Cannot use
- Duplicate Policy:
- Skip if exists — does not create a target record if one with the source FK already exists. Not available when Fire Mode is On Create.
- Always create — creates a new target record every time the trigger fires.
- Copy Products — when enabled, copies line items from the source record (e.g. QuoteProduct → OrderProduct) to the newly created target record.
- <Object> Record Variant — the record variant of the record the trigger creates (required while the trigger is on), starting on that object’s default; a Subscription trigger’s must offer the Subscription Active Status it gives new Subscriptions. A trigger that copies line items onto Order Products or Contract Products also has <Line object> Record Variant for them. Saving refuses an empty box or a variant of another object.
- Auto-Activate Contract (contract-target triggers only) — sets Contract Status to Active at creation rather than Draft.
Trigger conditions
Conditions filter when a trigger fires. Each condition compares a field on the source record to a value. Multiple conditions can be combined with AND, ANY, or a custom boolean expression such as 1 AND (2 OR 3).
Supported operators by field type:
- Any type:
is_changed(detects that the field value changed in the current update) - Boolean:
is_true,is_false - Picklist, text, lookup:
in,not_in - Number, currency, percent:
equals,not_equals,greater_than,greater_than_or_equal,less_than,less_than_or_equal,between - Date, datetime:
equals,not_equals,before,on_or_before,after,on_or_after,between - Time:
equals,not_equals,before,on_or_before,after,on_or_after— the time of day on the clock of the person saving the record, to the minute; the value is a time like9:00 AMor13:30
Condition values can be literal (a fixed value), relative (e.g. today + 30 days), or field (another field on the same record). Date conditions support an optional day offset from a field value.
Field mappings per trigger
Each trigger has a configurable field mappings list that controls which values are copied from the source to the target record at creation time. Default mappings are pre-seeded for common fields (AccountId, OwnerId, etc.) and for product line copies when Copy Products is on. Add custom mappings to pass additional fields. Mappings support dot-path traversal (e.g. ProductCatalogId.BillingPeriod) and optional date offsets.
Auto-generated fields that the system always sets regardless of mappings: record Name, Order Date (= today), Contract Start Date (= today), Invoice Due Date (= today + offset), Subscription Start/End/Next Billing Dates.
Invoice creation outputs
When an automation creates an Invoice (for example Generate Invoice from Order when an Order is Confirmed), its Creation Outputs run, one after the other, in the order they are listed. Set them under Setup () → CPQ Settings → Invoice → Creation Outputs: click Edit, then + Task, + Email or + Record output. Click an output to open or close it (the arrow on the right), and the trash icon to delete it. Save checks every output and saves nothing when one is wrong, naming it, for example Late notice: "Optional" requires at least 1 filter.
Every output
- Label — the output's name, used in the list, in messages and in Audit Logs.
- When to run — Always: for every invoice an automation creates. Optional: only for an invoice that matches the output's filters. Click the funnel next to it to open Filters, the same filters as on record lists, on the invoice's fields: for example Status equals Sent and Total Amount greater than 5000, matched all together, any of them, or with your own logic. An invoice that doesn't match simply skips that output; the others still run. An Optional output needs at least one filter: without one, Save says "Optional" requires at least 1 filter.
Task
Creates a Task on the invoice, owned by the invoice's owner.
- Task subject — the task's Subject. Left blank, it is Send invoice: and the invoice's name.
- Description — copied into the task's Description.
- Due date — Today, Today + N days or Today − N days, with the Days offset.
- Record variant — the task's Record Variant (required; the page starts it on the Activity default), one that offers the Task Type.
- Status — the task's Status, required, one that variant offers for Task (a new output starts on Not Started).
The Subject and Description are plain text, copied as typed: a merge field such as {{Record.Name}} stays as written in the task. Use an Email output with an Outreach Template when you need merge fields.
- Email mode — Use outreach template: pick it in Email template, which lists only Email templates whose Target Object is Invoice; any other is refused on Save (This template can't be used here. Please select an Email template whose Target Object is Invoice.). Or Write subject & body here: type the Subject and the Body (a rich text editor across the whole card). A blank Subject is sent as Invoice: and the invoice's name.
- Recipients — each is an Email address typed in, or a Field lookup: an Invoice field holding an email address, also through a lookup, such as
PrimaryContactId.Email(the Primary Contact's Email). An address given twice gets the email once. - From — who the email comes from:
- Record owner, with Owner of: Invoice Owner, Account Owner, Contract Owner or Order Owner (the owner of the invoice's Account, Contract or Order).
- Specific user — the list shows only active users whose email is on your verified sending domain (see Email sending domain).
- Sending address — the list shows only Verified Sending Email Addresses, such as Billing <billing@yourcompany.com>.
Merge fields. The template's, or the typed Subject and Body's, merge fields are filled in from the invoice: Invoice {{Record.Name}} for {{Record.AccountId.Name}} is sent as Invoice INV-0042 for Acme Corp. A merge field that can't be filled in is sent as nothing, or as its fallback: {{Record.PrimaryContactId.FirstName|default:"there"}} (see Fallbacks and empty fields). The template's attachments are attached.
When the sender can't send, the workspace owner does. When the email goes out, the chosen sender is replaced by the workspace owner if: the invoice has no Account, Contract or Order to take the owner from; the owner or the chosen user is inactive or blacklisted; their email is no longer on the verified sending domain (for example after it was changed); or the Sending Email Address is no longer Verified. If the workspace owner can't send either, the email isn't sent and Audit Logs records why.
Sending. The email is sent in the background a moment after the invoice is created, with the same checks as every email the app sends: an Email Unsubscribed or Email Bounced recipient, the workspace's email limit or paused sending stops it. Once sent, it is logged on the invoice as an email Activity. An email that isn't sent (no recipient, an empty Subject or Body once filled in, nobody to send it, or one of those checks) is recorded in Audit Logs as a warning on the invoice (cpq.invoice_output.warning), for example Invoice email output 'Invoice email' wasn't sent because it had no recipients. If the template is deleted later, the email is sent with the output's own Subject and Body, and Audit Logs records that the template is missing.
A sender in use is protected. A user an output sends from can't be deactivated or blacklisted (Cannot deactivate this user while CPQ Settings sends emails from them: Invoice email "Invoice email". Choose another sender for those emails first.), and a Sending Email Address an output sends from can't be deleted (billing@yourcompany.com can't be deleted while CPQ Settings sends emails from it: Invoice email "Invoice email". Choose another sender for those emails first.).
Record output
- Target object — the record it creates: any custom object, or Account, Activity, Contact, Lead, Opportunity, Quote or Ticket. Other objects aren't offered and are refused on Save, for example Outputs can't create Order records. Please select a custom object, or Account, Activity, Contact, Lead, Opportunity, Quote or Ticket.
- Field Mappings (Invoice field → target field) — copy a value from the invoice, also through a lookup:
AccountId.Name→ a Ticket's Title copies the Account's name. Fill if blank writes only an empty field; Overwrite always writes. - Field Defaults — a set value for a field of the new record: a fixed value, True or False, or a date counted from today (Today, Today + N days, Today − N days, Now, Now + N days, Now − N days).
- Record variant — an Activity output needs one; the record is made on it, and its picklist defaults offer only that variant’s values. Any other object’s record is made on a fixed Record Variant default when it has one, otherwise on the object’s default (an Account’s business or person default, from its name fields); Save checks the fixed picklist values against that variant.
Fields in use
An Invoice field used by an output's filters, by an email's Field lookup recipient or by a Field Mapping can't be deactivated or deleted; the message names what uses it, for example the filters of the Invoice Creation output "Late notice". Its API name can't be changed while filters or recipients use it.
Subscription renewals have the same outputs on the Subscription tab; see Subscription renewal.