> For the complete documentation index, see [llms.txt](https://help.sdocs.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.sdocs.com/developer-hub/s-docs-system-architecture/s-docs-objects.md).

# S-Docs Objects

{% hint style="info" %}
Use this page as the single reference for object purpose, key relationships, and field definitions. Some fields appear only in one source page. Those fields are still included here for completeness.
{% endhint %}

## S-Docs Core

### S-Doc

Represents individual generated S-Doc records and their lifecycle state. It links generated documents to templates, source records, recipients, and distribution outcomes.

**Object API Name:** `SDOC__SDoc__c`

#### Fields

| Field Label            | API Name            | Data Type              | Description                                                    |
| ---------------------- | ------------------- | ---------------------- | -------------------------------------------------------------- |
| SDoc Name              | `Name`              | Auto Number            | Name of the S-Doc.                                             |
| Allow Edit             | `Allow_Edit`        | Checkbox               | Lets users edit the generated document in the browser.         |
| Apex Job ID            | `Apex_Job_ID`       | Text(18)               | Apex job ID used to generate this document.                    |
| Attachment ID          | `Attachment_ID`     | Text(255)              | Attachment ID number.                                          |
| Attachment Name        | `Attachment_Name`   | Text(255)              | Attachment name.                                               |
| Auto Create Attachment | `Create_Attachment` | Checkbox               | Creates Salesforce Attachments when the template is generated. |
| Auto Create File       | `Create_File`       | Checkbox               | Creates Salesforce Files when the template is generated.       |
| Comment                | `Comment`           | Text Area(255)         | Comments regarding the S-Doc.                                  |
| Data                   | `Data`              | Long Text Area(131000) | HTML for the generated document.                               |
| Data Language          | `Data_Language`     | Text(255)              | Target language used during translation in Save & Preview.     |
| Data Uneditable        | `Data_Uneditable`   | Checkbox               | Permanently prevents document data from being modified.        |
| Document Format        | `Document_Format`   | Text(255)              | Format of the generated document.                              |
| Document Link          | `Document_Link`     | Long Text Area(4096)   | Link to the generated document.                                |
| Email                  | `Email_Link`        | Formula (Text)         | Link to email the document through S-Docs.                     |
| Envelope               | `Envelope`          | Lookup(Envelope)       | Envelope related to the S-Doc.                                 |
| LineItemDataXML        | `LineItemDataXML`   | Long Text Area(131000) | XML for line item data in the document.                        |
| Object ID              | `ObjectID`          | Text(255)              | Base record ID used for data merge.                            |
| Object Type            | `ObjectType`        | Text(255)              | Object type the S-Doc is related to.                           |
| RecordDataXML          | `RecordDataXML`     | Long Text Area(32000)  | XML string holding all base object merge field values.         |
| SDoc Job               | `SDJob`             | Lookup(SDoc Job)       | Job record that generated the S-Doc.                           |
| Template               | `SDTemplate`        | Lookup(SDoc Template)  | Template the S-Doc was created from.                           |
| Status                 | `Status`            | Picklist               | S-Doc generation status.                                       |
| Upload New             | `Upload`            | Formula (Text)         | Link to upload a different document.                           |
| Version                | `Version`           | Text(255)              | S-Doc version.                                                 |
| View                   | `View_Link`         | Formula (Text)         | Link to view the generated file.                               |

### S-Doc Template

Stores S-Docs template definitions, rendering settings, delivery options, and merge behavior. It is the design-time source object for generated outputs.

**Object API Name:** `SDOC__SDTemplate__c`

#### Fields

| Field Label                          | API Name                            | Data Type              | Description                                                           |
| ------------------------------------ | ----------------------------------- | ---------------------- | --------------------------------------------------------------------- |
| Template Name                        | `Name`                              | Text(80)               | The template's name.                                                  |
| Available For Use                    | `Active`                            | Checkbox               | Makes the template visible for new document creation.                 |
| Enable New Microsoft Template Upload | `SDOC__Advanced_Template_Editor__c` | Checkbox               | Enables the newer Microsoft template upload experience.               |
| Additional Relationship              | `Base_Related_Object`               | Picklist               | Automatically associates the document with a secondary parent object. |
| Allow Edit                           | `Allow_Edit`                        | Checkbox               | Whether the template can be edited after generation.                  |
| Auto Create Attachment               | `Create_Attachment`                 | Checkbox               | Creates Salesforce Attachments for generated documents.               |
| Auto Create File                     | `Create_File`                       | Checkbox               | Creates a Salesforce File when an S-Doc is generated.                 |
| Description                          | `Description`                       | Text Area(255)         | Description of the document template.                                 |
| Document Category                    | `Document_Category`                 | Picklist               | Optional category used to group templates.                            |
| E-Sign Vendor                        | `E_Sign_Vendor`                     | Picklist               | E-sign vendor used by this template.                                  |
| Email ReplyTo                        | `Email_ReplyTo`                     | Text Area(255)         | Reply-to address.                                                     |
| Email SendTo                         | `Email_Send_To_Long`                | Long Text Area(2000)   | Default Send To address.                                              |
| Email Subject                        | `Email_Subject`                     | Text Area(255)         | Subject used for outbound email.                                      |
| Google Docs Enabled                  | `GD_Enabled`                        | Checkbox               | Enables Google Docs upload.                                           |
| Google Drive Folder Id               | `Google_Drive_Folder_Id`            | Text(255)              | Google Drive folder ID for uploads.                                   |
| Header                               | `Header`                            | Long Text Area(131000) | The template header.                                                  |
| Footer                               | `Footer`                            | Long Text Area(131000) | Contents of the template footer.                                      |
| Language                             | `Language`                          | Picklist               | Language of the template.                                             |
| Related To Type                      | `Base_Object`                       | Picklist               | Primary object the template is used with.                             |
| SharePoint Enabled                   | `SP_Enabled`                        | Checkbox               | Enables SharePoint integration.                                       |
| SharePoint Document Library          | `Share_Point_Document_Library`      | Text(255)              | SharePoint document library name.                                     |
| SharePoint Folder Name               | `Share_Point_Folder_Name`           | Text(255)              | Folder name within the SharePoint library.                            |
| Tags                                 | `Tags`                              | Long Text Area(32000)  | Comma-separated dot-notation fields used in the template.             |
| Template CSS                         | `Template_CSS_XML`                  | Long Text Area(64000)  | XML for the template CSS.                                             |
| Template Format                      | `Template_Format`                   | Picklist               | Output format of generated documents.                                 |
| Template XML                         | `Template_XML`                      | Long Text Area(32000)  | Static content specific to the template.                              |
| Translate Email Settings Data        | `Translate_Email_Settings_Data`     | Checkbox               | Translates merge fields used in email settings during generation.     |
| TranslationTags                      | `TranslationTags`                   | Long Text Area(32768)  | Merge fields that require translation during generation.              |
| Unicode Level                        | `Unicode_Level`                     | Picklist               | Unicode enforcement level for international characters.               |
| User Choice Definitions              | `User_Choice_Definitions`           | Long Text Area(131072) | Metadata for runtime prompts in the template.                         |
| Version History Keep Limit           | `Version_History_Keep_Limit`        | Picklist               | Limits the number of versions kept in Version History.                |

####

### S-Doc Job

Tracks document generation jobs, execution parameters, status, and output artifacts. It is the primary runtime queue and history object for S-Docs processing.

**Object API Name:** `SDOC__SDJob__c`

#### Fields

| Field Label                        | API Name                             | Data Type               | Description                                                           |
| ---------------------------------- | ------------------------------------ | ----------------------- | --------------------------------------------------------------------- |
| SDJob Number                       | `Name`                               | Auto Number             | Label that shows the S-Doc Job number.                                |
| Account                            | `Account`                            | Lookup(Account)         | Account associated with the job.                                      |
| Incl. Attachments with Email       | `Aid`                                | Text(255)               | Comma-delimited Salesforce Attachment IDs included in outbound email. |
| Apex Job ID                        | `Apex_Job_ID`                        | Text(255)               | ID of the Apex job.                                                   |
| Attempts                           | `Attempts`                           | Text(255)               | Retry attempts, excluding the initial attempt.                        |
| Auto\_Upload                       | `Auto_Upload`                        | Checkbox                | Whether a document uploads automatically to a target.                 |
| Batch Group ID                     | `Batch_Group_ID`                     | Text(255)               | Shared batch group ID for jobs inserted together.                     |
| Batch Number                       | `Batch_Number`                       | Number(18, 0)           | Batch number within the batch group.                                  |
| Contact                            | `Contact`                            | Lookup(Contact)         | Contact related to the S-Doc job.                                     |
| Data Uneditable                    | `Data_Uneditable`                    | Checkbox                | Permanently prevents document data from being modified.               |
| Incl. Documents with Email         | `Did`                                | Text(255)               | Comma-delimited Salesforce Document IDs included in outbound email.   |
| Doclist                            | `Doclist`                            | Text(255)               | Comma-delimited list of template IDs or names to generate.            |
| EmailURL                           | `EmailURL`                           | Text Area(255)          | Opens the S-Docs email page.                                          |
| Email From                         | `Email_From`                         | Text(255)               | Email address used as the sender.                                     |
| Email Params                       | `Email_Params`                       | Text(255)               | Advanced email parameters for the process.                            |
| Incl. Files with Email             | `Fid`                                | Text(255)               | Comma-delimited file IDs included in outbound email.                  |
| Finish Pending Docs                | `Finish_Pending_Docs`                | Checkbox                | Controls generation flow for pending documents.                       |
| Include All Related Files          | `Include_All_Related_Files`          | Checkbox                | Queries and selects all files related to the base object.             |
| JobURL                             | `JobURL`                             | Text Area(255)          | URL for the job.                                                      |
| Job Chained From                   | `Job_Chained_From`                   | Lookup(SDoc Job)        | Prior job in a batch generation chain.                                |
| Lead                               | `Lead`                               | Lookup(Lead)            | Lead related to the job.                                              |
| LineItemDataXML                    | `LineItemDataXML`                    | Long Text Area(131072)  | All related-list values for the base object.                          |
| NetworkId                          | `NetworkId`                          | Text(255)               | ID of the current Experience Cloud site.                              |
| Num Partitions                     | `Num_Partitions`                     | Number(4, 0)            | Total partitions created for concurrent job splitters.                |
| Object API Name                    | `ObjApiName`                         | Text(255)               | API name of the object used by the job.                               |
| ObjSortValFieldsForSDoc            | `ObjSortValFieldsForSDoc`            | Text(255)               | Fields used to generate sort values for S-Docs.                       |
| ObjSortValNum                      | `ObjSortValNum`                      | Number(14, 4)           | Sort number assigned during processing.                               |
| ObjSortVal                         | `ObjSortVal`                         | Text(255)               | Sorting value from the base object record.                            |
| Object ID                          | `Oid`                                | Text(255) (External ID) | 15- or 18-character Salesforce ID of the record.                      |
| Partition Number                   | `Partition_Number`                   | Number(18, 0)           | Partition number currently being processed.                           |
| Position In Batch                  | `Position_In_Batch`                  | Number(18, 0)           | Position of the job within its batch.                                 |
| Process Job Splitters Concurrently | `Process_Job_Splitters_Concurrently` | Checkbox                | Enables parallel processing of job splitters.                         |
| RecordData2XML                     | `RecordData2XML`                     | Long Text Area(131000)  | Overflow data from split S-Doc jobs.                                  |
| RecordDataXML                      | `RecordDataXML`                      | Long Text Area(32000)   | Data file for the split S-Doc job.                                    |
| Run As User                        | `RunAs`                              | Text(255)               | Salesforce login of the user who generates or emails docs.            |
| SDCreate3 Parameters               | `SDCreate3_Parameters`               | Long Text Area(400)     | Additional configuration for document generation.                     |
| SDoc1 View                         | `SDoc1_View`                         | Formula (Text)          | Link to view the first generated document.                            |
| SDoc1                              | `SDoc1`                              | Lookup(SDoc)            | First generated S-Doc.                                                |
| SDoc2 View                         | `SDoc2_View`                         | Formula (Text)          | Link to view the second generated document.                           |
| SDoc2                              | `SDoc2`                              | Lookup(SDoc)            | Second generated S-Doc.                                               |
| S-Sign Envelope ID                 | `SSign_Envelope_ID`                  | Text(18)                | ID of the S-Sign envelope.                                            |
| SSign First Signer URL             | `SSign_First_Signer_URL`             | Long Text Area(1000)    | Signing URL for the first signer.                                     |
| SSign Language                     | `SSign_Language`                     | Text(255)               | Language used to generate the S-Sign link.                            |
| Send Email                         | `SendEmail`                          | Text(255)               | `"0"` disables email. `"1"` auto-emails generated docs.               |
| Start Job                          | `Start`                              | Checkbox                | Must be `true` for the job to begin processing.                       |
| Status Details                     | `Status_Details`                     | Long Text Area(32768)   | Detailed job stage and error information.                             |
| Status Link                        | `Status_Link`                        | Formula (Text)          | Visual completion state and generated document links.                 |
| Status                             | `Status`                             | Text(255)               | Completion percentage from `0` to `100`.                              |
| Task ID                            | `TaskID`                             | Text(255)               | Deprecated.                                                           |
| Task Subject                       | `Task_Subject`                       | Text(255)               | Deprecated.                                                           |
| Type                               | `Type`                               | Text(255)               | Deprecated.                                                           |
| Uses File Master                   | `Uses_File_Master`                   | Checkbox                | Monitors and resolves file creation issues when enabled.              |

### S-Doc Relationship

Defines relationship mappings used by S-Docs to traverse related data during generation. It models parent, child, and cross-object joins for template merge contexts.

**Object API Name:** `SDOC__SDRelationship__c`

#### Fields

| Field Label                  | API Name                  | Data Type                     | Description                                      |
| ---------------------------- | ------------------------- | ----------------------------- | ------------------------------------------------ |
| Sdoc Relationship Name       | `Name`                    | Auto Number                   | The name of the S-Doc relationship.              |
| SDoc                         | `SDoc`                    | Master-Detail(SDoc)           | The S-Doc tied to this relationship.             |
| Account                      | `Account`                 | Lookup(Account)               | Account associated with this relationship.       |
| Asset                        | `Asset`                   | Lookup(Asset)                 | Asset associated with this relationship.         |
| Case                         | `Case`                    | Lookup(Case)                  | Case associated with this relationship.          |
| Contact                      | `Contact`                 | Lookup(Contact)               | Contact associated with this relationship.       |
| Contract                     | `Contract`                | Lookup(Contract)              | Contract associated with this relationship.      |
| Doc Created By               | `Created`                 | Formula (Text)                | User who created the relationship record.        |
| Comments                     | `Document_Comment`        | Formula (Text)                | Comments regarding the document.                 |
| Doc Created On               | `Document_Created_On`     | Formula (Date/Time)           | Date the document was created.                   |
| Name                         | `Document_Name`           | Formula (Text)                | Name of the document.                            |
| Doc Number                   | `Document_Number`         | Formula (Text)                | Document number.                                 |
| Status                       | `Document_Status`         | Formula (Text)                | Document status or completion percentage.        |
| Category                     | `Document_Type`           | Formula (Text)                | Type of the document.                            |
| Edit                         | `Edit_Link`               | Formula (Text)                | Link to the edit page for the related document.  |
| Email                        | `Email_Link`              | Formula (Text)                | Link to the email page for the related document. |
| Lead                         | `Lead`                    | Lookup(Lead)                  | Lead associated with this relationship.          |
| Opportunity                  | `Opportunity`             | Lookup(Opportunity)           | Opportunity associated with this relationship.   |
| Product2                     | `Product2`                | Lookup(Product)               | Product2 associated with this relationship.      |
| Product                      | `Product`                 | Lookup(Product)               | Product associated with this relationship.       |
| Comment                      | `SDoc_Rel_Comment`        | Text Area(255)                | Comment regarding the S-Doc relationship.        |
| Doc Link                     | `SDoc_Rel_GD_Link`        | Text(255)                     | URL link to the Google Doc.                      |
| Doc Link Status              | `SDoc_Rel_GD_Status_Text` | Text(255)                     | Google Doc status text.                          |
| Doc Link Status (Deprecated) | `SDoc_Rel_GD_Status`      | Picklist                      | Legacy Google Doc status field.                  |
| Status                       | `SDoc_Rel_Status`         | Picklist                      | Status of the S-Doc relationship.                |
| Solution                     | `Solution`                | Lookup(Solution)              | Solution associated with this relationship.      |
| Upload New                   | `Upload`                  | Formula (Text)                | Link to upload a new file.                       |
| View                         | `View_Link`               | Formula (Text)                | Link to view the document.                       |
| License                      | `sfLma_u_License`         | Lookup(License)               | Deprecated.                                      |
| Professional Services        | `Professional_Services`   | Lookup(Professional Services) | Deprecated.                                      |
| PS Deliverable               | `PS_Deliverable`          | Lookup(PS Deliverable)        | Deprecated.                                      |
| PS Project Changes           | `PS_Project_Changes`      | Lookup(PS Project Changes)    | Deprecated.                                      |
| PS Project Items             | `PS_Project_Items`        | Lookup(PS Project Items)      | Deprecated.                                      |
| PS Resource Time             | `PS_Resource_Time`        | Lookup(PS Resource Time)      | Deprecated.                                      |

### S-Doc Action

Defines executable action records used in S-Docs automation flows. It stores action type, parameters, and template linkage.

**Object API Name:** `SDOC__SDAction__c`

#### Fields

| Field Label | API Name      | Data Type                    | Description                                               |
| ----------- | ------------- | ---------------------------- | --------------------------------------------------------- |
| Action Name | `Name`        | Text(80)                     | Name of the action.                                       |
| Apex\_Class | `Apex_Class`  | Text Area(255)               | The Apex class implemented for this action.               |
| Description | `Description` | Text Area(255)               | Short description of the action.                          |
| Parameters  | `Parameters`  | Long Text Area(32768)        | JSON string of parameters used for execution.             |
| Template    | `Template`    | Master-Detail(SDoc Template) | Template the configured action executes after generation. |

### SDocsSettings (Custom Settings)

Holds org-level and package-level S-Docs configuration settings. These fields control defaults, feature behavior, and operational settings.

**Object API Name:** `SDOC__SDocsSettings__c`

#### Fields

| Field Label                              | API Name                                            | Data Type | Description                                              |
| ---------------------------------------- | --------------------------------------------------- | --------- | -------------------------------------------------------- |
| Allow Templates With Error to Generate   | `SDOC__Allow_Templates_With_Error_to_Generate__c`   | Checkbox  | Allows generation from templates that contain errors.    |
| Concurrent Master Wait Time              | `SDOC__Concurrent_Master_Wait_Time__c`              | Number    | Wait time used for concurrent master processing.         |
| Disable Contact Record Queries For Email | `SDOC__Disable_Contact_Record_Queries_For_Email__c` | Checkbox  | Disables contact record queries during email operations. |
| Disable SDJob Get Content For Data       | `SDOC__Disable_SDJob_Get_Content_For_Data__c`       | Checkbox  | Disables SDJob get-content behavior for data retrieval.  |
| Don't Run SDTemplate Trigger             | `SDOC__Dont_Run_SDTemplate_Trigger__c`              | Checkbox  | Prevents the SDTemplate trigger from running.            |
| Enable Create Salesforce Task Feature    | `SDOC__Enable_Create_Salesforce_Task_Feature__c`    | Checkbox  | Enables Salesforce Task creation features.               |
| LogLevel                                 | `SDOC__LogLevel__c`                                 | Text      | Package log level.                                       |
| Log Enabled Users                        | `SDOC__Log_Enabled_Users__c`                        | Text Area | Users for whom logging is enabled.                       |
| Log Expiration Date                      | `SDOC__Log_Expiration_Date__c`                      | Date/Time | Expiration date for logs.                                |
| Platform Encryption Enabled              | `SDOC__Platform_Encryption_Enabled__c`              | Checkbox  | Indicates whether platform encryption is enabled.        |
| Process Job Splitters Concurrently       | `SDOC__Process_Job_Splitters_Concurrently__c`       | Checkbox  | Enables concurrent processing for job splitters.         |
| SDTemplateEditor Page Size               | `SDOC__SDTemplateEditor_Page_Size__c`               | Number    | Page size used by the template editor.                   |
| SD Jobs Batch Size                       | `SDOC__SD_Jobs_Batch_Size__c`                       | Number    | Batch size for SD jobs.                                  |
| SD Jobs Fail If Template Error           | `SDOC__SD_Jobs_Fail_If_Template_Error__c`           | Checkbox  | Fails jobs when template errors exist.                   |
| SD Jobs Move to Top of Flex Queue        | `SDOC__SD_Jobs_Top_of_Queue__c`                     | Checkbox  | Moves jobs to the top of the flex queue.                 |
| Send SDJobs Email as Future              | `SDOC__Send_SDJobs_Email_as_Future__c`              | Checkbox  | Sends SDJob email asynchronously as a future action.     |

## S-Docs eSignature (Ad-Hoc)

### Envelope

Represents an e-sign envelope context. It tracks signing workflow state, expiration, and recipient progression.

**Object API Name:** `SDOC__Envelope__c`

#### Fields

| Field Label         | API Name              | Data Type            | Description                                                       |
| ------------------- | --------------------- | -------------------- | ----------------------------------------------------------------- |
| Envelope Name       | `Name`                | Text(80)             | The name of the envelope.                                         |
| Base Object         | `Base_Object`         | Text(255)            | The API name of the base object for this envelope.                |
| Base Object Id      | `Base_Object_Id`      | Text(18)             | The record ID of the base object for this envelope.               |
| Expiration Date     | `Expiration_Date`     | Date/Time            | The date and time when signing access expires.                    |
| Is Sequential       | `Is_Sequential`       | Checkbox             | Whether recipients must sign in sequence.                         |
| Queued Jobs         | `Queued_Jobs`         | Long Text Area(2048) | Jobs waiting to be completed. Up to 45 jobs process at a time.    |
| Status              | `Status`              | Text(255)            | Indicates job percentage completed.                               |
| Verification Secret | `Verification_Secret` | Text(64)             | Unique system-generated token linked to the envelope.             |
| View Expiration     | `View_Expiration`     | Date/Time            | The date and time when view access expires.                       |
| View Recipient      | `View_Recipient`      | Email                | The email address of the envelope viewer specified by the sender. |

### Recipient

Represents signer or recipient participants tied to generated S-Docs or envelopes. It stores routing, status, and delivery metadata.

**Object API Name:** `SDOC__Recipient__c`

#### Fields

| Field Label             | API Name                     | Data Type            | Description                                                                   |
| ----------------------- | ---------------------------- | -------------------- | ----------------------------------------------------------------------------- |
| Recipient ID            | `Name`                       | Text(80)             | Name of the recipient.                                                        |
| Consent DateTime        | `Consent_DateTime`           | Date/Time            | The date and time when the recipient consented to do business electronically. |
| Consent Status          | `Consent_Status`             | Checkbox             | Whether the recipient has given electronic consent.                           |
| Email                   | `Email`                      | Text(255)            | The recipient's email address.                                                |
| Envelope Document       | `SDOC__Envelope_Document__c` | Lookup/Master-Detail | Related envelope document record.                                             |
| Envelope                | `Envelope`                   | Lookup(Envelope)     | Envelope for the recipient.                                                   |
| First Name              | `First_Name`                 | Text(255)            | The recipient's first name.                                                   |
| In Person               | `In_Person`                  | Checkbox             | Whether the recipient signs in person.                                        |
| Last Name               | `Last_Name`                  | Text(255)            | The recipient's last name.                                                    |
| Profile Color           | `Profile_Color`              | Long Text Area(1000) | Profile color styling for the recipient.                                      |
| Requires 2FA            | `Requires_2FA`               | Checkbox             | Whether the recipient requires two-factor authentication.                     |
| Signing Order           | `Signing_Order`              | Number(3, 0)         | Position number for sequential signing.                                       |
| Status                  | `Status`                     | Text(255)            | Signature status, such as sent or completed.                                  |
| Verification Code       | `Verification_Code`          | Text(6)              | One-time verification code used for identity verification.                    |
| Verification Expiration | `Verification_Expiration`    | Date/Time            | Expiration date for the current verification code.                            |

### S-Doc Input

Stores input parameters used to drive S-Docs eSignature generation and related operations. It provides structured input payloads for runtime processing.

**Object API Name:** `SDOC__SDocInput__c`

#### Fields

| Field Label                           | API Name                                         | Data Type                | Description                                                   |
| ------------------------------------- | ------------------------------------------------ | ------------------------ | ------------------------------------------------------------- |
| Name                                  | `Name`                                           | Text(80)                 | Name of the SDocInput record.                                 |
| Content Distribution Id               | `Content_Distribution_Id`                        | Text(18) (External ID)   | ID that represents external document sharing information.     |
| Content Document Id                   | `Content_Document_Id`                            | Text(18) (External ID)   | ID of a document uploaded to Salesforce CRM Content or Files. |
| Content Version Id                    | `Content_Version_Id`                             | Text(18) (External ID)   | ContentVersion ID for a signature or initial image.           |
| Envelope Document Field Configuration | `SDOC__Envelope_Document_Field_Configuration__c` | Lookup/Master-Detail     | Related envelope document field configuration.                |
| Key                                   | `Key`                                            | Text(255)                | This SDocInput's key.                                         |
| Label                                 | `Label`                                          | Text(255)                | This SDocInput's label.                                       |
| Properties                            | `Properties`                                     | Long Text Area(32768)    | Properties of this SDocInput.                                 |
| Recipient                             | `Recipient`                                      | Master-Detail(Recipient) | User responsible for this input.                              |
| Required Input                        | `Required`                                       | Checkbox                 | Whether this input is required.                               |
| SDoc                                  | `SDoc`                                           | Master-Detail(SDoc)      | Related S-Doc.                                                |
| Set Current Date                      | `Set_Current_Date`                               | Checkbox                 | Whether the value should default to the current date.         |
| Status                                | `Status`                                         | Text(255)                | Status of this input.                                         |
| Type                                  | `Type`                                           | Text(255)                | Type of input.                                                |
| Value                                 | `Value`                                          | Long Text Area(32768)    | Value of this input.                                          |
| Page Number                           | `SDOC__Page_Number__c`                           | Number                   | Page number tied to the input.                                |
| Page X                                | `SDOC__Page_X__c`                                | Number                   | Horizontal position.                                          |
| Page Y                                | `SDOC__Page_Y__c`                                | Number                   | Vertical position.                                            |

### Envelope Document Field Configuration

Stores compiled and raw field configuration for an envelope document. It also links configuration records to S-Doc input definitions for runtime field mapping.

**Object API Name:** `SDOC__Envelope_Document_Field_Configuration__c`

#### Fields

| Field Label                | API Name                              | Data Type                                   | Description                                             |
| -------------------------- | ------------------------------------- | ------------------------------------------- | ------------------------------------------------------- |
| Config Compiled            | `SDOC__Config_Compiled__c`            | Text Area                                   | Compiled field configuration for the envelope document. |
| Config JSON                | `SDOC__Config_JSON__c`                | Text Area                                   | Raw JSON field configuration for the envelope document. |
| Envelope Document          | `SDOC__Envelope_Document__c`          | Lookup/Master-Detail                        | Related envelope document record.                       |
| SDoc Input                 | `SDOC__SDoc_Input__c`                 | Lookup/Master-Detail (`SDOC__SDocInput__c`) | Related input definition used by the envelope document. |
| Type                       | `SDOC__Type__c`                       | Text                                        | Configuration type.                                     |
| Write Back Data Element Id | `SDOC__Write_Back_Data_Element_Id__c` | Text                                        | Data element ID used for write-back operations.         |

## Telemetry Objects

### Event

Captures discrete operational events tied to S-Docs processing. It acts as the transactional event stream for aggregation and diagnostics.

**Object API Name:** `SDOC__Event__c`

#### Fields

| Field Label   | API Name        | Data Type             | Description                                                                      |
| ------------- | --------------- | --------------------- | -------------------------------------------------------------------------------- |
| Event Name    | `Name`          | Auto Number           | The name of this event.                                                          |
| Envelope      | `Envelope`      | Lookup(Envelope)      | The envelope related to the event.                                               |
| Is Automation | `Is_Automation` | Checkbox              | Whether the event is automation-based.                                           |
| Properties    | `Properties`    | Long Text Area(32768) | Properties captured for the event.                                               |
| Recipient     | `Recipient`     | Lookup(Recipient)     | The recipient related to the event.                                              |
| SDoc          | `SDoc`          | Lookup(SDoc)          | The S-Doc related to the event.                                                  |
| Type          | `Type`          | Picklist              | Event type, such as `GENERATION`, `ENVELOPE_CREATION`, `EMAIL_SENT`, or `AUDIT`. |

### Event Aggregate

Maintains aggregated event metrics and counters derived from granular S-Docs events. It supports analytics and monitoring use cases.

**Object API Name:** `SDOC__Event_Aggregate__c`

#### Fields

| Field Label               | API Name                             | Data Type | Description                                  |
| ------------------------- | ------------------------------------ | --------- | -------------------------------------------- |
| Aggregation Date          | `SDOC__Aggregation_Date__c`          | Date      | Date for the aggregated event metrics.       |
| Automation Document Count | `SDOC__Automation_Document_Count__c` | Number    | Count of automation-driven document events.  |
| Automation Email Count    | `SDOC__Automation_Email_Count__c`    | Number    | Count of automation-driven email events.     |
| Envelope Count            | `SDOC__Envelope_Count__c`            | Number    | Count of envelope events.                    |
| Manual Document Count     | `SDOC__Manual_Document_Count__c`     | Number    | Count of manually generated document events. |
| Manual Email Count        | `SDOC__Manual_Email_Count__c`        | Number    | Count of manually sent email events.         |

### S-Doc Log

Stores detailed S-Docs log records for deeper traceability of generation and automation behavior.

**Object API Name:** `SDOC__SDLog__c`

#### Fields

| Field Label       | API Name                     | Data Type      | Description                               |
| ----------------- | ---------------------------- | -------------- | ----------------------------------------- |
| Log Name          | `Name`                       | Text(80)       | The name of the log.                      |
| Duration          | `Duration`                   | Number(18, 0)  | Duration of the logged transaction.       |
| Error             | `Error`                      | Text Area(255) | Error details for the logged transaction. |
| Package Namespace | `SDOC__Package_Namespace__c` | Text Area      | Package namespace tied to the log record. |
| Request\_Id       | `Request_Id`                 | Text Area(255) | Request ID of the logged transaction.     |
| Request\_Type     | `Request_Type`               | Text Area(255) | Request type of the logged transaction.   |
| Start             | `Start`                      | Date/Time      | Start time of the logged transaction.     |
| User              | `User`                       | Lookup(User)   | User who generated the log.               |


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://help.sdocs.com/developer-hub/s-docs-system-architecture/s-docs-objects.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
