Publishing and workflows

Publishing a template

Publish from the builder's Preview tool (the Publisher), or from the Template Publisher. In the Publisher you:

  1. Confirm the context object.
  2. Optionally pick a specific record to preview against.
  3. Optionally pick a specific saved version of the template.
  4. Choose where to publish, internally or on a site or community.

The Publisher builds the shareable link and lets you copy it. Publishing internally serves the link on the org URL; publishing to a site serves it on that site's URL, which is what external recipients use.

A published link looks like:

<site>/apex/b3d__Document?templateId=<template>&recordId=<record>

with optional versionId to pin a version and isPreview=true for a non-saving preview. See Templates submission app and URL parameters.

Templates are versioned. Every save is a new version, so you can publish the latest or pin a specific version. In-progress redline headers and footers use the latest saved Template, even when the body is already a shared working copy. See Headers and footers.

The two workflows

The same template can be delivered through two different workflows. The difference is not a template flag, it is what you create around the template.

Single-user workflow

The simplest workflow: send a link. Anyone who opens it gets the document rendered for a specific record, fills it in, and signs or downloads. Each visit creates a Document Trace that records who did what, the captured signature, the device and audit details, and the finished document and PDF.

Use single-user when one person completes the document and you just need a link and an audit record. Nothing needs to be created in advance beyond the template.

The finished document has two links on its trace: one to re-open it, and one to the completed document (used for viewing and for PDF generation).

Multi-user and redlining workflow

When a document needs several ordered signers, or negotiation before signing, you create records around the template:

Each collaborator gets personal magic links: one to the redline workspace and one to the signing page. They work the document in order, with tracked changes and comments if redlining, then sign in turn. The shared document and its PDF are produced against the Redline Request.

Use this workflow for multiple parties or when the contract language is negotiated first. The redline workspace guides the signing sequence. Distribute direct signing links in the intended sequence. See Redlining and collaboration.

Send Template on the Template record

The Template Sender component replaces the previous Start Redline Request panel without requiring a new component on existing Lightning record pages. It has two tabs:

Collaborators and additional CC recipients require Contacts with email addresses. Collaborator names come from the selected Contacts, so the panel no longer asks for first and last names. The Template must have its Site set before creating redline links.

The personal message is saved on each Collaborator's b3d__Personal_Message__c field before creation automation runs. It supports up to 32,768 characters including HTML. Administrators can include it in their collaborator invitation email templates or Flow automation. Creating a request does not itself configure or send invitation emails. For single-signer links, the message is saved on b3d__Template_Invitation__c.b3d__Personal_Message__c and copied to b3d__Document_Trace__c.b3d__Personal_Message__c on opening. Use the invitation message in your own sending automation. It is not displayed on the signing page or included in the PDF.

The request, collaborators and additional CC records save together. If any insert fails, none of these records are retained. CC contacts remain read-only observers and do not join the signing order.

Administrators using custom permission sets must grant access to TemplateRequestSenderController, the existing Publisher controller, and read/edit access to Collaborator__c.Personal_Message__c, along with the recipient objects and fields. The packaged CLM Admin permission set includes Template Invitation access and the new fields. The Template layout includes Template Invitations; the invitation layout includes its CC contacts and Document Traces. The Collaborator and Document Trace layouts include their message fields.

Managing a single-signer invitation

Open Template Invitations on the Template record to find saved links and their per-link CC contacts. New invitations also snapshot the Template's active CC defaults, so those recipients receive shareable links immediately. Invitations use b3d__Template_Invitation__c; their CC records use b3d__Document_CC__c.b3d__Template_Invitation__c. Signer URL contains the saved link. Creating a link validates the sending user's access to the Template, merge record and additional CC Contacts. Additional CC Contacts must have email addresses.

The link includes an invitation token. Keep this parameter when copying or sharing the URL. The token must match an active invitation for the same template and merge record before its settings can be copied. Guest users do not need read access to invitations or their CC lists; Salesforce resolves the token during trace creation using the existing URL Search Params field.

Each visit continues to create a separate Document Trace. The invitation's current message and active CCs are copied for that visit, alongside the Template's current defaults. Editing an invitation or its CC list affects future visits only. Existing traces retain their message and CC records. Invitation CC observer links are available immediately and use the invitation's selected publication URL. They show Not started before the first accessible trace, then the most recent signed result or, while unsigned, the latest accessible visit. Trace CCs also receive their own observer links. A Contact must have an active CC record on a trace for the invitation observer to show that trace.

Mark an invitation Revoked to reject future uses of that token. Restoring it or changing its template, merge record or publishing URL generates a new token and Signer URL. Revocation does not remove existing trace observers or disable the Template's ordinary publishing links. To remove an existing observer's access, revoke its Document CC on the trace.

For custom permission sets, add create/read/edit access to Template Invitation, access to its editable fields, read access to Access Token and Signer URL, and access to the Document CC invitation lookup. The trace's Template Invitation and Personal Message fields are populated by Salesforce; guest users do not need edit access to them. Preserve the existing Document Trace URL Search Params create permission used by the signing app.

Choosing a workflow

If you need... Use
One person to complete and sign, via a link Single-user (Document Trace)
Several parties to sign in order Multi-user (Redline Request + Collaborators)
Negotiation of the document before signing Redlining (Redline Request + Collaborators)

Cloning

The Clone Template action copies a template into an independent new template with a fresh identity. Use it to branch a proven template without affecting the original.