User guide
Simple Doc user guide.
Everything the in-app help explains, on one page: templates, merge fields, actions, running documents and recovery steps.
Topics
How Simple Doc works
Turn a Word template and Salesforce data into a finished document.
The three things you work with
A template is your reusable Word document and its scanned inputs. An action connects those inputs to Salesforce records and defines how to generate. A run generates documents with an action: one record (solo) or every matching record (batch), each with its own Word or PDF file.
Your first document
- Write merge fields in Word and save as
.docx. - Upload it on Templates and review Scan.
- Open its Actions tab and choose New action.
- Choose a starting object, add related data, and review Fields and sections.
- Use Test with a readable record. Save the draft.
- Choose Run on the template or the action, keep Run solo and pick a record. Inspect the resulting file under Runs.
- Reopen the action and publish the verified draft when it is ready for users.
Choose the right check
Scan discovers inputs in the file. Test checks current mappings and data without making a file. Run solo produces an actual document from the saved draft or, without a draft, the published version; Run batch produces one per matching record from the published version. Publishing makes a verified version available for record-page generation and automation.
Check your setup
The Templates tab opens a Setup check dialog the first time you visit it, and again whenever you choose Setup check. It lists five checks: permissions, document service, templates, batch generation and files. Each shows Ready, Needs attention or Action needed, with a short instruction. Batch generation is optional.
After installing the package, the person who installed it receives the Simple Doc Admin permission set; other users get theirs from an administrator.
Home: your month at a glance
See this month’s documents, batches and signatures, what waits for your signature, and start a template or a Composer document.
What Home shows
Home is the first tab of Simple Doc. Four cards count your work: Documents (succeeded, in progress, failed), Batches (completed, running, failed) and Signatures (signed, waiting, not completed) for the current month, and Templates and Composers (how many exist right now). Each card says what it counts and for which period.
The cards show numbers only. Choose View Runs, View Signing or View Templates to see the records behind them.
Your numbers and the whole organization
You see the counts of your own work. Administrators with the Configure permission start on Everyone, the totals for the whole organization, and can switch to Mine with the switch at the top. Totals are counts only: they never show other people’s documents.
If you cannot read some of the data, the matching counts show zero and a notice says so.
Lists and buttons
Waiting for my signature lists the documents where it is your turn to sign; choose Sign to open the request. Recent documents lists your latest files; choose Open to see one.
At the top right, Upload Template opens the Templates tab at the upload area (you can also create one with Composer), and Use Composer opens Composer. Home does not update by itself: choose Refresh to reload the numbers.
What is a template?
Keep the document, its versions, actions and generated results together.
A reusable document, not a Salesforce record layout
A template starts as a Word file you design: headings, tables, paragraphs and merge fields. Simple Doc stores a private Salesforce File, pins its exact version and scans it. The app does not edit the Word document; edit it in Word and upload a replacement.
Find everything in one place
- Scan: inputs, expressions, sections, their scope and document location.
- Actions: saved actions for this template, including different starting objects or mappings.
- Runs: documents visible to you for this template’s actions.
Run in the header opens New run with this template already chosen.
The header shows scan status, file information and version. Ready means the scan completed; it does not mean every action is configured or published.
Create and replace
Upload one DOCX to create a template named after the file. Search Previous templates to reopen it. Upload replacement keeps the template identity and creates a new draft version. Published actions keep their pinned version until you deliberately adopt and publish a replacement. Deleting templates is not currently available.
Start from a Composer example and avoid duplicates
To start from a ready-made document, open Composer and choose Examples. Pick one, choose Use example, adapt it, then choose Save as template to add it to your templates. The examples contain only made-up content.
When you upload a file whose name matches an existing template, Simple Doc warns you before it creates a second one, so you can open the existing template or upload a replacement instead.
File limitations
Use a supported Word file and check the limits shown in your app.
Supported input and output
Upload one .docx Word file. Renaming a PDF or another file to .docx does not convert it. Older .doc files, spreadsheets, presentations, plain text and HTML are not currently supported template inputs. Output can be Word or PDF when the document service supports the selected conversion.
Size and document structure
When you choose or drop a file, a window reads it in your browser first and checks it against Salesforce’s own limits: the size of the upload request and the memory (heap) Salesforce allows for uploading and generating. It also checks that the file is a valid Word document. The limits are read from your org when the window opens, so they can differ between installations; memory figures are estimates. Nothing is uploaded until you press Upload.
The uploader shows the active maximum DOCX size. Your administrator configures the service limits; there is no universal limit for every installation. The input file, Salesforce data, expanded document and final output each have limits. A small template with a very large repeating table can still exceed an output limit.
Keep images reasonably sized and avoid enormous related-record lists. The server also checks the ZIP structure of a DOCX and rejects invalid or oversized archive content. Password-protected/encrypted files are not suitable templates.
What the scan can promise
The scan reports inputs in the renderer’s compiled Word text parts, including ordinary document text and tables. Check the Document part column and Scan notes for warnings about other parts. Do not assume text in every embedded object, drawing or unusual Word feature will merge. Inspect a generated file with your actual layout before publishing.
Dropping files
Drop a DOCX anywhere inside the upload panel or use Upload Files with the keyboard. Green feedback recognises a DOCX; red feedback marks an unsupported file. When the browser hides a dragged file’s type, it is checked on drop. Unsupported or multiple files are rejected straight away. For a supported file the check window lists every check; an empty, oversized or invalid file shows the reason and cannot be uploaded. An uploaded file remains private even if a later scan fails.
Merge fields and scan
Write {!…} tags in Word; Scan shows what each tag needs.
Simple values and paths
Write {!Name} for a value or {!account.name} for a nested value. The names are case-sensitive. These are names in the document’s mapping, not automatically Salesforce field API names. Use Fields and sections to connect them to readable Salesforce fields.
Keep the opening {! and closing } around each tag. Legacy ${…} and bare {Name} are not supported by the Salesforce app.
Literal bracket paths such as {!account["name"]} are also supported. Word may split the characters of a tag across differently styled text runs; the scan normalises recognised tags. Check the generated layout when changing text styling around fields.
Repeat a list
{!#contacts}
{!name} — {!email}
{!/contacts}Map contacts to a related-record list. The text inside repeats for each item. Put a row’s opening and closing tags in that table row to repeat the row; test the actual Word layout. Lists may contain other mapped lists. A plain section’s mapping determines whether it repeats, enters an object, or acts as a condition.
Conditions and empty alternatives
{!#showDescription}{!description}{!/showDescription}
{!^contacts}No contacts found.{!/contacts}
{!#amount >= 10000}Priority customer{!/amount >= 10000}A positive section displays its contents when its value/condition permits it; a list repeats them. An inverted ^ section handles the empty or false branch. Close each section using its matching expression. Sections can nest. In an action, choose a repeating list or a yes/no condition explicitly.
Scope, individual items and list size
Inside a repeating section, {!name} reads that item first and can fall back to an outer scope. Use {!$root.account.name} to refer explicitly to a document-wide mapped value. {!.} reads the current scalar item in a list of single values; it is not a way to print an entire record object.
{!contacts.length} reads a mapped list’s size and {!contacts[0].name} reads a specific item. Index 0 is the first item; a fixed index needs enough items at generation time. Map the containing list and its item values rather than treating these derived reads as new Salesforce fields.
Calculations in the Word file
Template expressions support strings, numbers, booleans and null; dotted properties and literal indexes; parentheses; unary ! + -; arithmetic + - * / %; comparisons === !== > >= < <=; logic && ||; and conditional condition ? yes : no.
{!quantity * price}
{!account.annualRevenue >= 1000000 ? "Key account" : "Standard account"}Map the expression’s individual inputs. The scan does not execute it and you do not map the whole expression as one field. Template expressions do not allow function calls, assignment, JavaScript globals, prototype access or raw XML/HTML insertion. Salesforce-style formula functions belong in a Formula mapping instead.
State, system values and scan results
{!$State.Region} reads a State defined on the action. {!$User.Name} reads the person generating. These special roots resolve automatically; ordinary template fields still need mappings. See State and system values for the supported catalog.
Scan lists each input, type, containing section, use count and document part. Repeated occurrences can share one requirement; a value named name in two different lists has a different scope. Search and Input type help narrow the list. An empty scan means no recognised inputs were found. Correct malformed tags in Word and upload a replacement, then review Scan again.
Write a document in Composer
Write a document with merge fields, preview it with a real record and export it as Word or turn it into a template.
What Composer is
Composer is a writing page inside Simple Doc. Write your document on the left; the right side shows it with the values of a real record. When you are happy, export it as a Word file or turn it into a template.
It is the quickest way to learn how merge fields such as {!Name} work, because you see the result as you type.
Start writing
- Open Composer and choose New Composer.
- Choose the Base object: the Salesforce object whose fields you want to merge, for example Account.
- Optionally choose a Sample record so the preview shows real values.
- Start typing on the blank page.
Shortcuts, typed at the start of a line followed by a space:
#,##and###make a heading.-,--,*or+make a bulleted list;1.makes a numbered list.[]or- [ ]make a to-do;- [x]a checked one.>makes a quote,```a code block and---a divider.- Type
/to pick any block, or use the + button. Drag the six dots to move a block, or use their menu to move it up or down.
Add merge fields
Type {! and a list of fields of the base object appears. Choose one to insert it, for example {!Name}. A name that matches a field of the base object is connected for you.
Write your own name, such as {!MyField}, and connect it on the Mapping tab: choose the Salesforce field it should read, or add a related list. Names that are not connected yet are underlined in the document and counted on the Mapping tab.
To repeat or hide text, use sections: {!#Contacts} … {!/Contacts} repeats the lines in between for each contact, and {!^Website} … {!/Website} shows them only when there is no website.
What the preview shows
The preview fills in fields, and simple repeated or conditional sections, with the sample record. Formulas and comparisons stay as you wrote them and are marked, because only the exported document shows them exactly.
Exporting builds a real Word file. Create Template with Composer on the Templates tab does the same and opens the new template.
Format your text
Select text and use the toolbar that appears above the block: bold, italic, underline, strikethrough, size, colour, highlight, link and clear formatting. The shortcuts are Ctrl/Cmd+B, I, U and K (link). Typing **bold** or *italic* formats the text as soon as you close the marker. Links must start with https:// or mailto:.
- Merge fields such as
{!Name}are formatted as a whole, so a selection that cuts one is widened to include it. - Press Tab in a list item to make a sub-point and Shift+Tab to go back (three levels).
- The six-dot menu of a block sets alignment, indent, spacing and keep-with-next. Choose Page break from the + menu to start a new page.
Pages, header, footer, images and tables
Open Document settings to choose the paper size (A4, Letter or Legal), orientation, margins, the font and the colours. Fonts are the ones the document service has installed, so the PDF looks the same as the preview; your own fonts are not available in Composer.
- Header and footer: write them in the settings. Use Insert “Page X of Y” or the
/menu items Page number and Page count. Turn on Different first page to give the first page its own header and footer. - Images: save the Composer, add PNG or JPEG files in the settings (up to 1 MB each, 3 MB and 10 images in total), then choose Image from the
/menu. - Tables: set column widths, merge and split cells, shade cells, repeat a header row and pick the line style. To repeat a row for every record, type
{!#Items}at the start of its first cell and{!/Items}at the end of its last cell.
The preview shows one page at a time; use Previous page and Next page. Page breaks in the preview are approximate; the exported document is exact.
Import Markdown and save as a template
Import Markdown turns pasted Markdown into blocks: headings, lists, tables, bold, italic, links, quotes, code, dividers and \pagebreak on its own line. Merge fields and sections written as {!…} are kept as written. HTML and images are left out and counted in a message.
Save as template builds the Word file from the Composer, the same way Export DOCX does (it counts as one generated document), saves it as a template and publishes it, so Actions generate documents from it like from any uploaded template. When the Composer has a base object and a mapping, it also adds a draft Action on the template that carries that mapping; preview and publish it on the Actions tab. The direction is one way: a Composer creates a template, and the template keeps no link back (there is no Edit in Composer on the Templates tab). To change the document, edit the Composer and save it as a template again; every save is a snapshot that creates a new template, and a name that is already taken gets a numbered copy such as Name (2)
instead of replacing anything.
Not available in Composer: table of contents, several sections on one document, columns, footnotes, text boxes and floating images, per-side cell borders, your own fonts and signature boxes (add signatures with the signing feature).
Try an example
Each example opens in Composer with the text already written. It is not saved until you choose Save.
Fonts in templates
See which fonts a template uses, embed them in Word, and understand what PDFs and Word files will show.
The Fonts section of the scan
Open a template and choose the Scan tab. Below the inputs, Fonts lists every font the document uses, with a summary such as 4 fonts · 1 needs attention for PDF. It is information only and never blocks publishing.
- In template: Embedded, Embedded (only used characters) or Not embedded.
- PDF: Uses the embedded font, Installed for your organization or Available on the server (a green check), or Replaced by another font (a warning).
- What it means explains the result in one sentence.
A template scanned before fonts were checked says so; scan it again (Retry scan on a draft, or Upload replacement) to see its fonts. Only the first 50 fonts are listed. Fonts used only inside charts, embedded objects or images are not checked.
Embed fonts in Word
Embedding is the recommended way to get your fonts into PDFs.
- In Word, open File › Options › Save.
- Tick Embed fonts in the file.
- Leave Embed only the characters used in the document unticked. Merged data such as names and addresses contains characters the template does not, and those would show in another font.
- Do not embed common system fonts may stay ticked.
- Save the template and upload it again. The scan should show Embedded and Uses the embedded font.
Embedding makes the file larger, often by 100 KB or more per style (regular, bold, italic). Watch the template size limit shown in the uploader.
Why an embedded font can still be replaced
Every font file carries a license setting for embedding. Fonts that allow installable embedding, which includes most open fonts, are used for PDFs. Fonts marked preview and print only, or restricted, may be shown by Word but must not be used to create new documents, so the server ignores them and the scan reports Replaced by. Choose another font, or have a licensed copy installed for your organization (see Install a font on the server below).
What “Replaced by” means
The server has neither the font nor a usable embedded copy, so the PDF uses the named replacement, usually a font of similar style. Line breaks, spacing and page count can change. Some replacements have the same character widths (for example Liberation Sans for Arial), so the layout stays the same. Always check a generated PDF before publishing.
Fonts Installed for your organization were added to the server for your organization only by Simple Doc support. No other organization can use them.
Install a font on the server
When a font cannot be embedded (its license does not allow it, or the template becomes too large) and the scan shows Replaced by, Simple Doc support can install the font on the server for your organization only. This is a paid service, quoted separately.
Contact Simple Doc support and include:
- the font name and the styles your templates use (for example Regular, Bold, Italic);
- your Salesforce organization ID;
- the font files (.ttf, .otf or .ttc), when support asks for them;
- proof that the font's license allows use on a server or in an application. A desktop license is often not enough.
Support sends a quote. Once the font is installed, scan the template again and the font shows Installed for your organization. A server font only affects PDFs; recipients of Word files still need the font on their own computer.
Word versus PDF output
A PDF is drawn on the server, so the Fonts table is exactly what it will use. A Word (DOCX) file keeps the template's font names; the recipient's computer shows its own installed fonts, unless the font is fully embedded in the template, in which case it travels with the document. Fonts installed on the server do not help Word recipients.
Prepare a Word template for signing
Mark in Word where each person signs, step by step.
What a signing box is
A signing box is a Word content control with a special title. It marks the place where a signature, a name or a date goes. Simple Doc finds the boxes when it scans the template and keeps their place and size in the generated PDF. Signers see the boxes highlighted on the signing page.
Sign:Customer: the signature of the person signing as Customer.SignName:Customer: that person's name, filled in when everyone has signed.SignDate:Customer: the date they signed, filled in the same way.
The word after the colon is the role. You choose who fills each role later, on the action. Signing boxes only appear in PDF documents; the rest of your document does not change.
Step 1: Show the Developer tab
Content controls are on Word's Developer tab, which is hidden by default. Use the Word desktop app.
- Windows: choose File › Options › Customize Ribbon, tick Developer and choose OK.
- Mac: choose Word › Settings (or Preferences) › Ribbon & Toolbar, tick Developer and choose Save.
You only need to do this once.
Step 2: Add a signature box
- Click where the signature should go, for example in an empty table cell above the line "Customer".
- On Developer, in Controls, choose Picture Content Control. A picture placeholder appears.
- Drag a corner of the placeholder until it has the size the signature should get, for example 5 × 1.5 cm.
- With the placeholder selected, choose Properties on the Developer tab.
- Under Title, type
Sign:Customerand choose OK.
If your Word has no picture control (some Mac versions), use a Plain Text Content Control instead. It gets a standard box of about 5 × 1.5 cm. The signature is scaled to fit the box without stretching.
Step 3: Add the name and date (optional)
- Click where the signer's name should be printed.
- On Developer, choose Plain Text Content Control.
- Choose Properties, set the title to
SignName:Customerand choose OK. - Do the same for the date with the title
SignDate:Customer.
Leave enough room on the line: a name gets a box of about 5.5 cm wide, a date about 3 cm. The placeholder text Word shows ("Click or tap here to enter text") does not appear in the PDF.
Step 4: Add the other signers
Repeat steps 2 and 3 for every person who signs, each with their own role, for example Sign:Seller and Sign:Witness.
- A role starts with a letter and uses only letters, digits or
_, up to 40 characters. No spaces: writeAccount_Manager, notAccount Manager. - Upper and lower case do not matter:
customerandCustomerare the same role. - A document can have up to five roles and 50 boxes. Every role needs at least one
Sign:box. - A role can have more than one
Sign:box, for example to initial every page. The signer signs once and the signature is placed in each of the role's boxes.
Step 5: Upload and check the scan
- Save the Word file and upload it on Templates, or use Upload replacement on an existing template to keep its actions.
- Open the scan. It lists the signing roles it found with the number of signature, name and date boxes.
- Fix any scan warning in Word and upload the file again:
- Invalid role name: the title has a space or another character that is not allowed.
- Control around a table cell or row: place the control inside the cell, not around it.
- More than five roles or a role without a Sign: box: remove a role or add its signature box.
- Word signature line: Word's own signature lines are not used. Replace them with a
Sign:box.
- Continue on the action: open 6. Signing to choose who signs each role.
Layout tips
- A two-column table without borders keeps signature blocks side by side: box, line, name and date under each other in each cell.
- Boxes may also be in a header or footer, for example for initials on every page.
- Do not put a box inside a repeating list such as
{!#Contacts}: every copy becomes another box for the same role. - Keep a box on one page. Generate a test PDF to check the boxes land where you expect.
Data sources and related records
Choose the records your action can use before mapping their values.
Starting object and related records
The starting object is the kind of Salesforce record people generate from, such as Account or Contact. Its starting-record source supplies that record. Choose Records related to… to add child records such as Contacts for an Account. Related lists can themselves contain related lists. Use clear data-source names because mappings and formulas refer to them.
Choose which records and how many
Use filters to include the right related records, sort order to make their order intentional, and Maximum records to bound each list. Without a sort, records use record-ID order. A record with more matching related rows than allowed reports a limit error rather than silently truncating the document.
Fields used are derived from mappings and formulas; you do not need to preselect every field. The access check plans against your own permissions. Salesforce transaction capacity and the configured transport budget still apply; splitting work into sensible lists helps avoid oversized documents.
Access and changes
Data is read as the person generating, subject to record sharing and field/object permissions. A successful administrator test does not grant other users access. Changing the starting object can remove incompatible data sources and mappings; review the resulting inputs before saving.
Map fields and sections
Connect each document input to a value and decide how blanks behave.
Review suggestions first
Suggestions appear as checkboxes. An unmapped input initially uses its first available suggestion, including a possible typo match such as titel → Title. Exact matches take priority. Review the source, object and field; uncheck an incorrect suggestion to remove it. Your uncheck is preserved when suggestions refresh. Choosing another suggestion replaces the current choice; existing mappings are not automatically overwritten.
Use all suggestions opens a review of proposed changes. Deselect changes you do not want before applying. All changes remain unsaved until you choose Save draft.
Value sources
- Salesforce field: choose a data source and readable field. Entries ending in › open a related record’s fields; breadcrumbs return to the parent.
- Fixed value: text, a number, true/false or Blank. Empty text, zero and false remain distinct choices.
- Record or user ID: use an identifier instead of a display field.
- Yes/no condition: combine comparisons using All or Any, optionally reversing the result.
- Formula: calculate a value from readable fields.
- State: choose a value supplied for this generation.
Repeating and conditional sections
For a section, choose whether to repeat for each record or show only when a value or condition is true. Map its related list before mapping the fields inside it. Inside a loop, choose values from each record; a starting-record value or fixed label can instead be the same for every row. At least one item mapping is needed for a repeating-record section.
Blanks and display formatting
If the value is blank can stop with an error, print blank, leave the value out, or use a replacement value. A replacement can be another field, fixed value or ID; choose what happens if that is blank too. Formatted replacements must have a compatible type.
Use Display format for dates, date/times and numbers, including currency and decimal places. Use explicit date/time-zone choices where needed. Mapping determines values; Word determines the surrounding paragraph/table styling.
Formula fields
Calculate a mapped value with supported Salesforce-style formula syntax.
Write and validate a formula
Choose Source → Formula. Refer to a field using the data-source name and field API name inside {!…}. This computes a document value; it does not create a Salesforce formula field.
UPPER({!account.Name})
IF(ISBLANK({!account.Phone}), "Not provided", {!account.Phone})
ROUND({!opportunities.Amount} * 1.21, 2)The Opportunities example belongs inside the section repeating those records. Use Validate formula before saving. The formula’s result type is derived automatically. Use TEXT() to join a number or date into text.
Editor shortcuts
Start a function name for suggestions, type {! for data sources, and . for their fields/relationships. Ctrl+Space or Options opens suggestions. Arrow keys choose an option; Enter or Tab inserts it, and Esc closes the list. Inserted functions include parameters: type over the selected parameter and use Tab for the next.
Supported operators and functions
Operators: + - * / ^ & = <> < <= > >= && || !. This syntax differs from expressions written directly in Word.
Logic: AND OR NOT IF CASE ISBLANK BLANKVALUE.
Text: LEN LEFT RIGHT MID UPPER LOWER TRIM CONTAINS BEGINS FIND SUBSTITUTE LPAD RPAD TEXT VALUE.
Numbers: ABS CEILING FLOOR ROUND MOD MAX MIN SQRT.
Dates: TODAY NOW YEAR MONTH DAY DATE DATEVALUE ADDMONTHS.
Text comparisons ignore case. Blank numbers behave as zero and blank text as empty text. Unknown functions, fields and incompatible types are reported with a position and block saving. This is a supported subset of Salesforce formulas, not every function available elsewhere in Salesforce.
State and system values
Use UPPER({!$State.Region}) or {!$User.Email} inside a formula. Only defined State and supported system members are available. The fields read by a formula are added to its data source automatically. A formula cannot run arbitrary code or call an external service.
State and system values
Supply generation-specific choices and use supported requester information.
Define State on the action
On 2. State, define text, number, boolean, date or date/time inputs with optional defaults. Names start with a letter, use letters/digits/underscores, and are at most 40 characters; names are unique ignoring case. Text values are at most 1,000 characters. Use {!$State.Region} in Word or choose State as a mapping source.
State inputs appear on Test, both run types in New run and the record-page generator. In a batch run the values apply to every record, and the fields come from the published version. Values apply only to that request and are not remembered for the next one. False and zero are valid. Blank input uses the action default, otherwise null; each mapping decides how null is handled. State is not available in data-source filters or filename patterns.
Supported system catalog
Values resolve as the person generating, with case-sensitive names:
$User: Id, FirstName, LastName, Name, Email, Username, Title, ProfileId, UserRoleId, ManagerId, IsActive.$Organization: Id, Name, IsSandbox, InstanceName.$Profile: Id, Name.$UserRole: Id, Name; blank if the requester has no role.$System: Today and Now. Today uses the requester’s time zone; Now is a UTC date/time.
$Record, $Flow, $Label, $Setup, $Permission, $Api and $Site are not supported template roots. Map a normal field from the starting record instead of using $Record.
Change a system input mapping
Inputs such as {!$User.Name} and {!$State.Region} have a selected suggestion for their matching system or State value. You can choose another field, fixed value, formula or supported source. Review the suggestion and uncheck it to clear that mapping. Older saved actions without an explicit mapping continue to use the system value.
An override changes that document input. Formulas and other mapping sources still read the original requester or State value. A global input is shared across the document, including repeating sections.
Test an action
Check current mappings against a record without creating a file.
Use a meaningful record
On 4. Test, choose a readable record of the starting object and review any State inputs. Test uses your current unsaved configuration as you. It does not save the action or generate a document. Try records with related rows, empty lists and missing optional values.
Read the results
The results show the input, mapping type, source, produced value and Ok/Blank/Error state. Repeating lists show their count and the first three records. Click a template input to jump to its mapping. Mapping cards also show their test results. Access errors identify the unavailable field/object.
Rerun test on mapping changes is on by default. Turn it off to retain the last result until you choose Run test; edits then mark it out of date. Test does not prove final Word or PDF layout. Generate and open a file before publishing.
Outline and test document
The results can be shown as an Outline (the default) or as a Table. The outline lists the template’s values in document order, with sections nested, and marks each value Filled, Blank or Error in words as well as icons. Click a value to jump to its mapping. Switching views does not run the test again.
Generate test document creates the real file for the test record. It is a normal run: it uses the saved draft, follows the same limits and throttling as every other run, and shows Queued, Throttled, Running or Failed. It is disabled, with the reason shown, while there are unsaved changes, the draft is invalid or no test record is chosen. When it succeeds, choose Open generated file.
Runs
Run an action on one record or a batch of records and find the results.
Start a run
Choose Run in one of three places. It opens the same New run dialog:
- On a template, in the header next to Upload replacement and Download. The template is already chosen.
- In an action, next to Save and Publish action. The template and the action are already chosen. Save your changes first.
- On the app’s Runs page, next to Help and Refresh. Choose a template first, then one of its actions. This button appears only with Configure access.
Under Run type, choose Run solo or Run batch.
- Run solo uses the saved draft when available; otherwise it runs the published action for one record without Batch access. Published single-record runs use the saved output settings, shown read-only. Choose a readable starting record and complete its State inputs. Run stays disabled while required mappings are incomplete. Save mapping changes first: a run uses the saved draft, whereas Test uses your current unsaved changes.
- Run batch uses the published version. The record is replaced by filters on the starting object; the State inputs stay, taken from the published version, and apply to every record. See Batch generation.
The dialog starts in Run solo. Choose Run batch explicitly. A visible message explains any missing input while Run is disabled.
Names and output
Filename patterns support {name}, {templateName}, {templateId}, {recordName}, {recordId}, {actionName}, {yyyyMMdd} and {HHmmss}. The extension is added for you and unsafe filename characters are replaced. Check PDF layout separately from Word.
File type and pattern start from the action. Changing them affects this run only. In a batch run, every file name ends with -1, -2, -3… in record order, so names never collide. The pattern itself does not show this suffix.
Find and verify the file
The template’s Runs tab and the app’s Runs → Documents view show results visible to you, with status, action/version, record and creation time. Use Refresh to update the list and Open file after success. Lists show the 50 most recent matching entries; their counts are list counts.
A successful solo run can verify that exact saved draft for publishing. Earlier-draft success does not verify a changed draft. Inspect the file yourself for values, repeating tables, blank handling, page breaks and layout.
Runs: Documents and Batch runs
Open Runs in Simple Doc. Documents shows your generated files with the existing refresh and file controls. Batch runs shows your newest runs across all actions, including Editor and Flow sources, up to 50. The selected view is remembered for your user in this browser when browser storage is available.
The Runs tab requires Generate permission. Batch runs also requires the Batch Extension and Simple Doc Batch permission set. If the extension is not enabled, an information message says: Batch generation is not enabled for your organization. Contact Simple Doc Support to add the Batch Extension. If your permission is missing, a warning says: You need the Simple Doc Batch permission set to run batches. Ask your Salesforce administrator to assign it.
Follow the action link, source, status, total, queued, running, succeeded, failed, started and completed times, and safe error message. Waiting and retrying jobs count as queued. A dash means counts were omitted for a very large run. Active runs refresh automatically with intervals growing from 5 to 60 seconds; checking stops when none is active or you leave the view. Use Refresh to check again. There is no cancel action.
New version or new file
When someone runs an action again for the same record, Simple Doc can add the new document as a new version of their earlier file instead of creating another file. Choose the behavior in the action, under Visibility, in When the document is created again:
- New version of the same file (recommended, the default for new drafts). The file keeps its original name and gains a version, so the record shows one file.
- New file each time. Actions published before this setting existed behave this way until you save a new draft.
Only the owner of a file, or someone with collaborator access, can add a version. A version is added only to the requester’s own earlier document for the same action, record and file type (Word or PDF). Otherwise Simple Doc saves a new file and the run still succeeds. The run’s details say why in one sentence: the action creates a new file each time, this is the first document for the record, the earlier file was deleted or is not visible, or it belongs to someone else. Previews never create versions, and batch runs follow the same rules.
Names instead of IDs
Records appear by name, as a link to the record, with the object’s icon. Failed runs without a file are titled with the action, the record name and the date. Batch runs show the number of records and the start time. If you cannot read a record, you see Record not available instead of an ID. IDs appear only in support details such as the Reference ID.
Batch generation
Run one document per record for many records of an action’s starting object.
Access
Choose Run and set Run type to Run batch. Batch needs the Batch Extension for your organization and the Simple Doc Batch permission set for your user, in addition to the usual Configure and Generate access.
- Without the extension, an information message says: Batch generation is not enabled for your organization. Contact Simple Doc Support to add the Batch Extension.
- Without the permission set, a warning says: You need the Simple Doc Batch permission set to run batches. Ask your Salesforce administrator to assign it.
Publish the action first. A batch always uses the published revision, and an unpublished action shows: Publish this action before running a batch.
Choose records and start
- Add typed filters on the starting object. Empty filters mean all records you can read. Filters cannot use State or record context.
- Choose sorting and a record limit (1–10,000). Matching records are counted automatically with your access; changing a filter, sort or limit clears the count and recounts a valid selection. Use Count records to refresh or retry.
- Review the file type and file name pattern, then choose Run for 1 to 10,000 records. Above that the dialog says: Narrow the filter to 10,000 records or fewer.
Each record gets its own File and generation record, using the published action and the State values you enter in the dialog (prefilled with the defaults). Those values apply to every record of the run. The dialog’s file type and pattern apply to the whole run, and each file name ends with -1, -2, -3… in record order. You can have one active batch at a time (BATCH_ALREADY_RUNNING). Re-publishing or deactivating the action during a run stops it with ACTION_CHANGED.
How the documents are made
Simple Doc sends the records in groups of up to 100 per request, with the template sent once per group. The document service works through a group one document at a time and only in idle capacity, so documents started from record pages keep priority. Large batches therefore take time: 10,000 PDFs can take hours. Temporary service problems put a document back in the queue for a later group; documents already saved are not generated again.
Follow progress
A confirmation appears when the batch starts. Runs → Batch runs shows your newest 50 runs across actions, from the dialog and from Flow, with status, total and queued, running, succeeded and failed counts. Waiting and retrying documents count as queued; a dash means the counts were omitted for a very large run. Active runs refresh automatically, with intervals growing from 5 to 60 seconds. A running batch cannot be cancelled.
Batch Apex and Flow
A Flow that calls Generate Document from Batch Apex is a batch too: it needs the same extension and permission set, and the requests are grouped the same way. See Generate with Flow.
Run a list view
Choose Run and set Run type to List view. It needs the same Batch access as a batch run, and the action must be published. Pick one of the saved list views of the action’s starting object by name. The dialog shows how many records the view holds before you start.
- Only list views you can see are offered, and only records you can read are processed. Private views of other users are never offered.
- Standard list views appear after they have been opened once in Salesforce. If the object has no saved list view, create one in its list view first.
- A list view holds at most 10,000 records. When the dialog says 10,000 or more records, narrow the view in its list view first; Run stays disabled until you do.
- Rows you tick in a list are not used: the run always covers the whole view. The view is read again when the run starts, so changes made in between count.
Progress, errors and the summary of started and rejected records appear in Runs → Batch runs, like any batch.
Drafts and publishing
Make a tested version available without changing earlier documents.
Save, generate, then publish
Save the action draft after mappings are valid. Generate a successful document from that exact saved draft, inspect it, then reopen the action. Publish action becomes available when the server confirms the draft and its generation evidence. Test explains the next step when generation is still required.
In step 5. Visibility, choose Who can run this action: Only me, All internal users (the default) or, in orgs with Experience Cloud, All internal and external users, which lets portal users run it from an Experience page. Other users never see an action outside its choice, and the choice is checked on the server too. The choice is stored with the published version, so a new version asks again. Portal use draws from the same monthly allowance as internal use.
Why Publish can be disabled
Unsaved changes, invalid mappings, an unavailable/stale draft or missing successful generation evidence prevent publication. Saving a changed draft means an older successful file no longer verifies it. If another person saved first, reload the latest version and review the differences.
Published versions stay pinned
Record-page generation and automation use the active published action and its pinned template. Editing a draft does not silently alter that version. Publishing a new version affects future requests, not files already produced. Never assume an earlier successful document proves a changed template or mapping.
Output options
File type and name, document language, extra record links, watermark and password protection.
File and language
On the action's Output step, choose Word or PDF and the file name pattern. {!Field} adds a top-level template value, for example invoice-{!InvoiceNumber}. The document language formats dates, numbers, amounts and percentages that use a document-language display format: the user's language, a fixed language, or a field of the starting record.
Attach to more records
List up to 5 lookup paths from the starting record, such as AccountId or Account.ParentId. The file is also linked to each of those records the user can see.
Watermark and password protection
For PDF output, add a watermark such as DRAFT on every page, and protect the PDF: an optional password to open it (from a field or a State value, 4 to 64 characters) and whether printing, copying and editing are allowed. Simple Doc never stores the password. Password protection cannot be combined with signing.
Replace a template safely
Keep published behavior stable while reviewing a revised Word document.
Upload and review
Open the template and choose Upload replacement. Upload one revised DOCX. The template keeps its name and gets a new draft. Review Scan and the replacement comparison: added/changed, removed and retained inputs. A structural match is a suggestion, not proof that every mapping remains valid.
Adopt the new version
Published actions keep their existing pin. Start the appropriate action draft for the new template version, review all inputs and mappings, run Test, save and generate a new document. Publish only after verifying the new file. Cancel replacement returns to the previous detail without creating a replacement draft.
Generate from a record
Use an active published action directly from a Salesforce record page.
Choose a published action
Your administrator adds Simple Doc Record Runner to a record page. Its card is titled Simple Doc and lists active published actions for that record’s object. Select an action to open Generate document.
The template, action, record, file type and filename pattern are fixed by the published action. Complete any State inputs, then choose Generate. Draft actions are not offered here.
Follow the result
A spinner and status show progress while generation runs. When it succeeds, the dialog closes, a Document generated toast appears and the record’s Files refresh. Queuing a request is not yet success.
Choose Continue in background to close the dialog while the record card follows the result. Failures show their status and retry controls when supported. After about ten minutes automatic checks stop; use Check status again. Returning to the record recovers your most recent request per action from the last 24 hours without resubmitting or announcing an already finished job.
Waiting for capacity
Waiting for capacity means the document service is busy, or your organization reached its generation limit for the moment. It is not an error. The request waits in the background and resumes by itself, usually within 1 to 10 minutes, without using up a retry.
- The progress ring fills until the planned resume time. The card shows that time and the current time.
- A short note says why: the service is busy for everyone, your organization reached its limit, a user in your organization is generating many documents, or activity from outside your organization is using its ID (then contact Simple Doc support).
- While it waits, the action is shown as a label instead of a button so the same document is not requested twice.
You can leave the page; the document still appears in Files. After 60 minutes of waiting the request stops with THROTTLE_TIMEOUT; try again later with Retry run.
Open the run and recent documents
When a run finishes, the toast has an Open run link that opens that run in the Runs tab. A failed run gets the same link so you can read the reason. Users of Experience Cloud sites see the toast without the link.
Under the action buttons, Recent documents lists your latest documents for this record, each with Open file and, when you have the Runs tab, Open run.
Permissions and privacy
Users need access to the app and to the Salesforce data being merged.
Administrator and generator roles
Administrators need the Configure permission and the Simple Doc Admin permission set. People generating need Generate permission through Simple Doc User (admins can generate too). Installed managed packages also require the applicable named-user license.
Permission sets expose app capabilities; they do not bypass Salesforce record sharing or field/object access. Generation reads data as the requester. Ask your administrator when an action or field is unavailable.
Settings tab. Administrators also see a Settings tab for organization-wide options. Show full error messages adds technical details (exception type and code location) to every user's error messages; it never includes record data, file names or document content. Sandboxes and scratch orgs always show these details. In production, turn it on only while troubleshooting. Other users do not see the tab.
Files and support
Template uploads and draft-generation files remain private to the uploader/requester. Record-page generated results are linked to the selected record. Publication has its own controlled sharing behavior for saved templates. Failed or abandoned uploads are not automatically deleted.
Errors include a code and sometimes a support reference. Give those to your administrator. Do not put passwords, tokens, API keys or private document/record data in support screenshots.
Limit an action to certain people
In the action builder, Visibility decides who can run the action. New actions start with Always. Choose All, Any or Custom logic to add rules, each with a type and a value: profile, permission set, permission set group, public group, specific user, action creator, all internal users, all external users (only with Experience Cloud) or record data. A record data rule also looks at the record the document starts from. Formula evaluates to true lets you write the condition yourself. Up to 25 rules are allowed. A summary line states who can run the action. People who do not match do not see the action, and guests never match.
Troubleshooting
Use the error code to decide whether to edit, retry or ask for access.
Document and mapping errors
- INVALID_TEMPLATE: save a valid DOCX, correct malformed tags and review scan notes.
- UNRESOLVED_INPUT: map the missing input, including its containing section.
- BINDING_TYPE / BINDING_NULL: choose a compatible value or review blank handling.
- UNKNOWN_STATE / UNKNOWN_GLOBAL: correct the case-sensitive name and use a supported member.
- INVALID_STATE: supply a value of the declared type.
Limits, setup and access
- DATASET_LIMIT: a related list exceeded Maximum records; refine filters or its intentional bound.
- TRANSPORT_LIMIT / OUTPUT_LIMIT: reduce file/data/expanded output size or ask the administrator about the configured budget.
- PERMISSION_REQUIRED / PERMISSION_DENIED: request the capability or missing data access.
- PACKAGE_UNLICENSED: ask for a named-user package license.
- TRANSPORT_UNCONFIGURED: administrator service setup is incomplete.
Retry versus reload
Waiting for capacity is not an error: the request resumes by itself. THROTTLE_TIMEOUT means it waited 60 minutes; retry later. A template scan that shows Try again in N seconds was not queued; scan again after that time. BUSY and timeouts can be temporary. Retry the failed step; do not repeatedly upload the same file. STALE_REVISION means another save occurred: reload and review before continuing. PREVIEW_REQUIRED / STALE_PREVIEW means generate a successful document from the current saved draft before publishing. A support reference helps investigate recurring failures.
Errors and reference IDs
Find what went wrong when an action fails, and what to send to support.
What a reference ID is
Every error Simple Doc shows has a stable code (for example TRANSPORT_ERROR) and a Reference ID, a 32-character value. Everything that happened in the same request shares that ID, so support can follow it from your org to the document service. Quote the code and the Reference ID, not a screenshot of the page alone.
Where administrators find errors
In sandbox and scratch orgs (never in production) a failed run also shows a technical detail line with the exception type and where it happened, to help you or support find the cause; it never contains a message or document data.
Administrators with the Simple Doc Configure permission see an Errors tab in Runs. It lists errors from the last day, week or month, newest first, with time, code, area, step and Reference ID. Filter by code to focus on one problem. Failed runs also show their Reference ID on the run record.
Other users see the code and Reference ID in the error message and can pass them to an administrator.
Copy diagnostics for support
- Open Runs, then Errors.
- Choose the time range that includes the failure.
- Select Copy diagnostics and paste the text into your support request.
The summary is plain English text with your org ID, the Simple Doc version and, for each error, the time (UTC), code, area, step, exception type, location in the code and Reference ID.
What is and is not recorded
Simple Doc records only identifiers and codes. It never records document or template contents, mapping data, record field values, file names, exception messages, names, e-mail addresses or credentials. Error entries are kept for 30 days and then removed automatically. The package does not send error information anywhere by itself; you decide what to share.
The document service keeps a short technical record of each request (Reference ID, your org ID, route, status and duration) for 30 days so support can find the cause of a failure.
Plain-language messages
Every error says what happened and what to do in plain words. The code and Reference ID are in a Details section you can open with the keyboard, with a button to copy the Reference ID. Where technical details are allowed (sandboxes, or when an administrator turns on Show full error messages in Settings), Details also shows the exception type and its location.
Generate with Flow
Let an administrator call a published document action from automation.
Configure the Flow action
Use the Generate Document Apex action with the configured action and record IDs. The action must be active and published, and the running user must have the required license, Generate permission and data access. Do not treat an administrator’s successful test as authorization for every Flow user.
Automated Process is not supported. Scheduled/event-driven paths running under that identity are rejected. Use a path running as an active named user; system context does not bypass these checks.
State and completion
Flow supports the action’s positional State inputs state1 through state10; keep those slot assignments stable when editing State. Values must match their declared types. A queued generation is not yet a finished file: follow its generation status and handle failures. Coordinate one-off files, request keys and result handling with your administrator using the deployment’s Flow guide.
Inputs and results
Provide the Record ID and published Simple Doc Action ID. Optional Template File ID chooses a one-off DOCX: ContentDocument uses its latest version, ContentVersion pins an exact version. An optional idempotency key lets a retry return the same request instead of duplicating it. Look up action IDs within each org rather than copying IDs between orgs.
State inputs are Text: use decimal text for numbers, true/false for booleans, yyyy-MM-dd for dates and UTC ISO-8601 for date/times. Blank uses the action default, otherwise null. Results include Accepted, Run ID, Error Code and a message; accepted means queued, not completed. Handle rejection before waiting for a file.
Batch Apex
When Generate Document runs inside Batch Apex (System.isBatch()), every existing check applies first, then the Batch Extension and the Simple Doc Batch permission set. Without them every row returns BATCH_NOT_ENABLED or BATCH_PERMISSION_REQUIRED with the same messages as the Batch panel, and no job is created.
Keep the batch scope at 200 or fewer; one call accepts at most 200 requests. Each call creates one Flow batch run per action, and the documents are generated in groups in idle capacity. Batch Apex runs as the user who started it; Scheduled Apex that starts a batch runs as the user who scheduled it. Schedule-triggered Flows run as Automated Process and stay unsupported.
Agentforce and Agent Builder
Generate Document is an invocable action, so Agent Builder can offer it to an agent as an action. The agent supplies the Record ID and the Simple Doc Action ID; every other input is optional. The result adds a Status (Queued or Rejected, as of submission) next to Accepted, Run ID, Error Code and Message. The File appears on the record later, so the agent should report that the document was queued, not that it is finished. The agent runs as the signed-in user, who needs the Simple Doc User permission set. Simple Doc has not been tested in an Agentforce org.
Document events
Every finished run publishes Simple Doc Document Event with the event type (Generated, Failed or Signed), the run, action and record, and the File IDs. Build a platform-event-triggered Flow on it to email or archive the File; set the subscription's running user to someone who can read the Files.
Sign documents online
Let people sign a generated PDF inside Salesforce or from an emailed link, step by step.
How signing works
- The template has signing boxes for each role, such as Customer and Seller. See Prepare a Word template for signing.
- The action says who signs each role, in which order and how.
- After a PDF is generated, a user chooses Request signature.
- Signers sign one after another, on a secure page inside Salesforce or from a personal link in an email.
- When everyone has signed, Simple Doc saves the signed PDF on the record, with a signing certificate page.
An administrator can check the E-signing row in Setup check on the Templates tab. It must show Ready before the signing page can open inside Salesforce.
Set up the action
- Open the action and choose 6. Signing. The step lists the roles found in the template.
- Turn on Ask for signatures on generated documents. Documents from this action are then created as PDF.
- Set Days before an unsigned request expires (1 to 60, default 14).
- For each role, enter the Label shown to users and choose the Signing order.
- Choose How they sign: Signs in Salesforce (for example a colleague, or a customer signing on your device) or Gets a link by email.
- Choose Who signs: The user who sends it, Entered when sending, A related person, or From fields on the starting record.
- For A related person, pick a lookup on the starting record to a User, Contact, Lead, Person Account or custom object, for example Contact ID. For a custom object, also pick its name field and email field. A User, or a Contact or Person Account with a portal login, can then also sign on their own Signing tab or site page.
- For From fields on the starting record, pick a name field and an email field, for example Contact › Full Name and Contact › Email.
- Test, save and publish the action as usual.
Send a document for signing
- Generate the document with the action.
- Open the run under Runs, or choose View signing in the record's recent documents, and open the Signing tab. If the tab is greyed out, the reason is next to it: Can only sign PDFs, No boxes to sign, Signing is off for this action or Test documents can't be signed.
- Choose Request signature.
- Check the signers and their order. Enter any missing names and email addresses.
- Optionally give a link signer an Access code of 6 to 12 digits. Share the code separately, for example by phone; it is not in the email.
- Choose Send for signing.
The first signer can sign at once. Each link signer gets their email when it is their turn. A Flow can send documents too, with the Request Signature action; access codes are only available in the dialog.
The email is a Simple Doc message with a Review and sign button, the personal link as text, the expiry time and the document name. It is sent from your email address in your language, and has a plain-text version for clients that do not show HTML.
What signers see
- The signer opens the link from the email, or the page opens inside Salesforce.
- If an access code was set, they enter it. After five wrong codes the link stops working; send a new one with Resend link.
- They read the document. The places to sign are highlighted.
- They choose Sign here, then Draw their signature with a mouse, pen or finger, or Type their full name.
- They confirm that they agree to sign electronically and choose Sign document.
A signer can also choose Decline and give a reason. Declining ends the request for everyone. The page works on phones. It and the certificate page use the language of the user who sent the request.
Sign inside Salesforce
- Open the document's Signing tab. Why it is not complete yet names the signer whose turn it is.
- Choose Sign here. The signing page opens inside Salesforce.
- If someone else signs, for example a customer at your desk, hand over the device. The page shows that you host the signing.
- When the signer is done, close the page. Simple Doc checks the status straight away.
No access code is asked here: you are signed in to Salesforce, and the certificate page records you as the host. A signer with their own Salesforce login finds the request on the app's Signing tab under Waiting for me and signs it there.
Follow progress and open the signed document
The Signing tab shows the request status (Waiting for signatures, Signed by everyone, Declined, Expired or Cancelled) and a Progress timeline: requested, sent, each signer's turn, link emails, signatures, completion and the saved file, each with its time. Why it is not complete yet says what the request waits for and offers the button that solves it. Simple Doc checks for news in the background, which can take a few minutes; Check now checks straight away.
- Open signed document: the signed PDF is saved on the record as "<document name> - signed". Its last page is the signing certificate with who signed, when and how.
- Resend link: emails a new link; the previous link stops working.
- Request again: after a decline, expiry, cancellation or failure.
- Cancel request: signers can no longer sign.
A document can have one open request at a time. To change signers, cancel the request and send a new one.
The Signing tab and Experience Cloud sites
The app's Signing tab lists signature requests: Waiting for me, Signed by me, Sent by me and All I can see. Open a request to see its document on the Signing tab, or, as a signer, its timeline with Sign here when it is your turn. After you sign, it shows that the sender's copy updates shortly.
Logged-in site users can sign documents that wait for them. An administrator:
- Maps the role to a person with a portal login, such as a Contact or Person Account.
- Assigns the Simple Doc Community User permission set to the site users.
- Adds Simple Doc Signing to a page for logged-in users in Experience Builder and publishes the site.
Site users see only Waiting for me and Signed by me. Guests never see requests. Sites on their own custom domain cannot show the signing page; their signers use the emailed link.
Good to know
- Signing is a simple electronic signature with a tamper-evident seal and an audit trail. Check whether it fits your legal requirements.
- Only generated PDF documents can be signed, up to 8 MB and five signers.
- While people sign, the document and signer details are stored on Simple Doc's servers in the EU. They are deleted soon after Salesforce has saved the signed PDF, or when the request is declined, cancelled or expires.
- Emails are sent by Salesforce from the address of the user who sends the request, within your organization's email limits.
Next steps
New to Simple Doc? Start with installation and setup. Stuck? Visit support or see what changed in the release notes.