Most quote processes start the same way. A rep opens the opportunity, copies the line items into a Word document, fixes the typos, saves a PDF and attaches it to an email. Often a few figures come from somewhere else first: open items from an ERP export, a price from a spreadsheet.

Automating that looks simple: fill a template from the opportunity. These six decisions decide whether it still works in month two.

1. Which system owns each number?

If every figure lives in Salesforce, one query is enough. If prices, stock or open items live in an ERP or a price list, decide which system is the master for each field, and join the data on a stable key (a product code, a customer number) before the document is rendered.

Typing ERP figures into Salesforce so that the template can see them is how a quote is out of date by Friday.

2. Shape the data before the template

A quote is a parent (opportunity, account, terms) with a list of children (line items). Group the line items under their quote and calculate discounts and totals before rendering.

A template that only places values and repeats one table row per item is easy to read and hard to break. A template full of conditions and formulas is neither.

3. Who maintains the template, and in what?

A Word file that sales ops already edits is the easiest template to keep alive: layout and wording stay with the people who own them. HTML gives finer control over the layout but needs someone comfortable with markup.

If the templates come from an older tool, plan to rewrite their merge fields once: every tool has its own placeholder syntax. Keep earlier versions of each template, so a bad edit can be rolled back.

4. Numbering and status belong on the record

Generate the quote number where it cannot collide (a field or sequence in the system of record), not in the template. Write the number and the status back to the opportunity in the same run.

Decide what a re-run does: regenerate the same quote with the same number, or create a new version.

5. One at a time, or a thousand overnight?

A rep on the phone needs one PDF in seconds. Month-end statements or price-change letters need thousands in one run. Check the limits for both cases: tools that render inside Salesforce work within the platform's limits, external services within a maximum run time.

Also decide between one file per record and one combined file for the whole batch.

6. Where does the file go, and where is the data processed?

Attach the PDF to the record, email it to the team, keep a copy in storage, or all three. If the documents carry personal or contract data, check where they are generated and stored, in which region, and whether a data processing agreement is in place.

If the process needs e-signatures, that is often a separate product. Include it in the comparison.

Test with sample records first

Before the first real quote goes out, run the steps up to the document on a few sample records and check the numbers: the discount rules, the rounding, the totals line. Most quote errors are data errors, not template errors.

Disclosure: this post is from the team behind Floverk, a data pipeline platform for Salesforce, CSV and other files, SFTP servers and REST APIs that also generates documents. In Floverk, a quote run is SOQL Query → Business Rules → Aggregate → Universal Document → Save to SF: the opportunity and its line items, the pricing rules, the totals, the Word template filled in as a PDF, saved on the record. How that compares with tools that generate documents inside Salesforce: Document generation from Salesforce, files and APIs, compared