The problem
You have contracts that pull data from Opportunity, Account, Contact and a custom object like Service__c, and someone still copies values by hand into Word. Or you run Quote-to-Cash where a 60-page master agreement and several quote PDFs must be bundled, then chased for signature for days. Salesforce document generation should remove that busy work without breaking page layouts, permissions or reports. This guide shows what to set up, what to watch for, and the exact places in Salesforce to change.
How Salesforce document generation pieces fit together
Think in three parts: data, templates, and delivery. You need a template that references the right Salesforce records, a safe place to file the finished PDF, and a way to send that PDF for signature. Each part has admin-level choices that affect permissions, auditing and user flow.
Data: what records are available
- You can merge from any Salesforce standard or custom object (Account, Opportunity, Quote, Contract, Contact, Service__c, etc.).
- The connector supports five levels of parent lookups - that means you can pull fields from the record, its parent, the parent's parent, and so on up to five levels.
- Child and grandchild records can be added as repeating table rows in a document - think Quote Line Items or related Service records.
Templates: Word and PDF
Build your legal text in Word. Use placeholders for fields and repeating tables so the document comes out formatted and paginated correctly. For anchors and signature placement, use anchor-tag text inside the template so a signature box survives repagination.
Template basics for admins
Keep templates maintainable and secure. As an admin you control who updates templates and who can trigger generation.
Practical tips
- Store the master template in a secure location outside user-accessible folders. Only a few admins should update it.
- Use clear placeholder names tied to fields: for example
{{Account.Name}} or {{Opportunity.CloseDate}}. Use a consistent naming convention so business users can map fields easily.
- For repeating rows, design the table in Word and leave a single empty row that will be replicated from the child records (QuoteLineItems or Service_Items__c).
- Put anchor text like
[SIGNER:Customer] where signatures must appear so the connector can place signature fields reliably even after pagination.
Storing generated documents
Decide between Salesforce Files and Notes & Attachments before you automate generation.
Files vs Notes & Attachments
- Use Salesforce Files for large documents: the connector supports documents up to 40 MB. Notes & Attachments is capped at 25 MB by Salesforce and cannot be raised.
- If you want fine-grained sharing and versioning, Files is the right choice. If your org still relies on Notes & Attachments for legacy reasons, be aware of the 25 MB cap.
- The connector files the finished document on the same record the template merged from, or per-template defaults you set.
Sending for signature and identity checks
Signature handling is often where admins worry about audit trails and signer verification. The connector sends documents for signature through your own Circularo account, so the signed PDF comes back into the same Salesforce record.
Signer options
- Signature positions use anchor tags so they stick to the right spot even after pages shift.
- You can require an emailed one-time code for signer identity.
- Optionally require a per-signer password stored on that signer’s Salesforce record - useful when signers are internal users or partners whose password you control in Salesforce.
Triggers and automation for admins
Don't force users to click a button if a simple automation does the job. The connector supports multiple triggers so you can map it to your business process.
Available triggers
- Button on a record: let sales reps generate and send on demand from Opportunity, Quote or Account.
- Stage or field change: automatically generate when Opportunity.StageName moves to Contract Signed or Quote.Status becomes Approved.
- New file uploaded: trigger when a supporting document appears on a record.
Concrete scenario
Imagine your renewals team handles 200 renewals a month. Each renewal needs a 60-page renewal agreement plus a one-page summary of changes pulled from Contract and a custom Renewal__c child record. Today reps export data, paste into Word, reformat and email a PDF. Signatures take an average of four days because pages shift and signature fields break.
With document generation: a template merges fields from Contract, Account and Renewal__c (children appear as repeating rows), bundles the 60-page agreement with the one-page summary, sends via your Circularo account with anchor-based signature placement, and files the signed PDF back to the Contract record. You control who can trigger this and you keep the master template in a secure admin-only folder.
Wrap up
If you manage templates, page layout and permission changes, the choices above are the ones that matter: design repeatable Word templates, use Files for large documents, map parent and child lookups correctly, and pick the right trigger. Savvy DocuGen fills Word and PDF templates from any Salesforce record, supports five levels of parent lookups plus child repeating rows, bundles templates for a single signature run, sends through your Circularo account, and writes the signed PDF back to the same record. It connects via an authorised connection - no managed package to install - and works the same in sandbox as in production.
Try it in your sandbox today to validate templates and triggers against your real Opportunity, Quote and Contract records.
Read next