Data model reference

Overview

3B stores its work in a set of custom objects under the b3d namespace, plus files (ContentVersions) that hold the actual document definitions and outputs. There are two completion pipelines that both hang off the Template, one for single-user and multi-signer submission, one for redline collaboration, plus the Sign document pipeline.

Object map

Template__c
  ├─ Template_Style__c            (lookup: CSS styling)
  │
  ├─ Template_Invitation__c       (saved single-signer link and per-link settings)
  │
  ├─ Document_Trace__c            (child: one per single-user submission/visit)
  │
  ├─ Redline_Request__c          (child: one negotiation session)
  │     ├─ Collaborator__c        (child + linked to Contact)
  │     └─ Comment_Thread__c      (child: suggestion or comment thread)
  │            └─ Comment__c      (child: individual comment)
  │
  └─ Log_Entry__c                 (lookup: app logs)

Document__c                        (Sign document, PDFConfig.3bt lives here)
  └─ Submission_Request__c
        └─ Submitter__c            (linked to Contact)

Function_Expression__c            (standalone reusable function)
Value_Formatter__c                (standalone reusable formatter)
General_Settings__c               (hierarchy custom setting)
Signature_Audit__c                (tamper-evident evidence for each signer)
Document_CC__c                    (Contact + exactly one default or instance parent)

Core configuration objects

Template__c

The template definition record. The document itself is stored as a Template.3bt file on this record.

Key fields: Identifier__c (stable portable id), Core_Object__c (the object merge fields resolve against), Site__c, Use_Signature__c, Use_As_Subtemplate__c, View_Only_Mode__c, Redirect_If_Signed__c, With_Security_Enforced__c, Template_Style__c (lookup), Created_on_Package_Version__c.

PDF_Engine__c overrides General Settings and defaults to Native on new records in version 10.0.0. Clear it to inherit General Settings.

Template_Style__c

Reusable CSS applied to documents. Field: Body__c (the stylesheet). See Template styles.

Value_Formatter__c

A reusable transformation applied to a merged value (dates, case, currency, and so on). Field: Formatter__c. See Value formatters.

Function_Expression__c

A reusable function that produces a value in a template. Field: Function__c. See Function expressions.

Templates submission pipeline

Template_Invitation__c

A saved single-signer link created by Template Sender. Fields: Template__c, Record_Id__c, Site__c, rich text Personal_Message__c, Revoked__c, system-managed Access_Token__c, and formula Signer_URL__c. Related Document CCs hold per-link recipients. Each visit creates a separate Document Trace linked to the invitation. See Publishing and workflows.

Document_Trace__c

One record per single-user submission or visit. Child of Template__c. Captures the merge record (Record_ID__c), the pinned definition version (Data_Version_ID__c), submitter identity (name fields), captured signature (Signature_BASE64__c, Signature_DATA__c), full device and browser audit fields, render and completion flags (rendered, signed, downloaded, rejected) with timestamps, and error fields. The completed body and PDF are stored as files on this record. Version 9 also records the PDF ContentVersion, ContentDocument, generation time, and engine used.

Invitation visits also store Template_Invitation__c and a snapshot of Personal_Message__c. Changing an invitation later does not change the message already copied to a trace.

Redline pipeline

Redline_Request__c

One negotiation session. Child of Template__c. Fields: Status__c (New, In Progress, Complete, Ready to Sign), Record_Id__c (merge record), Data_Version_ID__c (pinned definition), Completed_Document_Link__c, plus the version 9 PDF audit fields. The working document (Document.html) is stored here.

Collaborator__c

One participant. Child of both Redline_Request__c and Contact. Fields: Order__c (signing sequence), Slug__c (the collaborator's personal link value), Magic_Link__c and Magic_Link_Sign__c (personal links), permission flags (Read_Only__c, Can_Make_Suggestions__c, Can_Accept_Changes__c, Can_Discard_Changes__c), Status__c (New, Ready to Sign, Signed), signature fields, rich text Personal_Message__c for invitation automation, and device/audit fields.

Comment_Thread__c

A thread. Child of Redline_Request__c. Thread_Type__c distinguishes a Suggestion (tracked change) from a Comment conversation. Carries the author, resolution state and resolver, a rolled-up comment count, and lifecycle timestamps. Items are soft-deleted (marked removed), never hard-deleted.

Comment__c

An individual comment inside a comment thread. Child of Comment_Thread__c. Fields: Comment_Body__c, author, and timestamps.

Sign pipeline

Document__c

A Sign e-signature document. The uploaded PDF's field layout is stored as a PDFConfig.3bt file on this record. Key fields: External_Id__c, Slug__c, Site__c, Core_Object__c, Submitters__c, Required_Submitters__c, and formula links built from the Sign base URL. See 3B Sign object model.

PDF_Engine__c overrides General Settings and defaults to Native on new records in version 10.0.0.

Submission_Request__c

A signing request bundle. Child of Document__c. Carries the merge record, email-alert and request-signature flags, rolled-up submitter counts, status, and the version 9 PDF audit fields.

Submitter__c

An individual signer. Child of Submission_Request__c, optionally linked to a Contact. Fields: Submitter_Name__c, Submitter_Email__c, Order__c, Slug__c, External_Id__c, per-stage timestamps (opened, started, signed, rejected, error), device and audit capture, a personal Submit_URL__c, and rich text Personal_Message__c for invitation automation. The record-page sender requires a Contact with an email address and snapshots its name and email before insert automation runs.

Supporting objects

Document_CC__c

A read-only recipient linked to a Contact and exactly one parent: Template, Document, Template Invitation, Document Trace, Redline Request or Submission Request. Template and Document parents define defaults for future instances. Other parents receive an independent observer link. Fields include Contact__c, the parent lookups, Revoked__c, system-managed Access_Token__c, and formula Observer_URL__c. CCs do not count as signers. See CC recipients and personal signature messages.

Signature_Audit__c

One tamper-evident evidence record per signer. It stores the request and signer references, source flow, signer name and email, signed time, IP address, browser user agent, consent state, verification method, and the SHA-256 fingerprint of the final PDF. Optional lookups connect the audit to a Document Trace, Collaborator, or Submitter. Field history tracking records later changes. See E-signature attestation and document validation.

Log_Entry__c

App logging. Fields: Body__c, Type__c (Error or Debug), Package_Version__c, and a Template lookup. Check here first when a generation or render fails.

General_Settings__c

A hierarchy custom setting holding all org configuration. See General settings and org configuration.

The definition files

Document definitions and outputs are stored as files attached to records, addressed by file name:

File Holds Attached to
Template.3bt Template definition (body, inputs, settings, headers and footers) Template__c
PDFConfig.3bt Sign field layout Document__c
Responses.3bt Sign submitter responses Document__c
Document.html Completed or in-progress body Document Trace / Redline Request
DocumentPdf.html / DocumentPdf.json Temporary print-optimized native PDF artifact and manifest Document Trace / Submission Request / Redline Request
Document.pdf Rendered PDF Document Trace / Submission Request / Redline Request
Signature.json / Signature.png Captured signatures signer records

Files are versioned, and submissions use their stored data version to select the definition. Headers and footers in an in-progress redline workflow are an exception: they are loaded from the latest saved Template until completion. The completed Document.html retains their merged values for later PDF regeneration.

Usage metering

The package reports usage counts back to its license management org through feature parameters: template, document, and trace counts, submitter outcomes (generated, success, failed), and redline request and collaborator counts. These are incremented automatically by triggers and are not something administrators configure.