Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Connect S-Docs to your customer records

Configure S-Docs relationships for Salesforce standard and Custom Objects.

Once you have successfully installed S-Docs, the next step is configuring the application to recognize the specific Salesforce objects you plan to use for document generation.

To ensure S-Docs works seamlessly with your desired objects—whether they are standard Salesforce objects or custom ones—you must ensure the proper relational architecture is in place.

Create a Lookup Field on the SDoc Relationship Object

To associate generated documents with your records, create a lookup field on SDoc Relationship. This field links the target object to S-Docs.

S-Docs includes lookup fields for standard objects, including Account and Opportunity. Check for an existing lookup field before you create one.

If the lookup field does not exist, create it. Custom Objects always require a new field. Some standard objects also require one.

  1. Navigate to Setup > Object Manager.

  2. Search for SDoc Relationship.

  3. Select SDoc Relationship.

    The SDoc Relationship object selected in Salesforce Object Manager
  4. Select Fields & Relationships.

  5. Select New.

    The New button on the SDoc Relationship Fields and Relationships page
  6. Select Lookup Relationship.

  7. Select Next.

  8. Select the target object from the Related To list.

  9. Select Next.

  10. Enter a value in Field Label.

  11. Enter a value in Field Name.

    Enter the exact object name without __c. For example, enter CustomObj for CustomObj__c.

  12. Select Next.

  13. Select the checkbox for each relevant user.

  14. Select Next.

    The field-level security visibility checkbox in Salesforce
  15. Leave the default layout settings unchanged.

  16. Select Save.

For AppExchange packages, use package_u_CustomObj as the field name for package__CustomObj__c. Salesforce does not allow double underscores in the new field name.

Add a Custom Object to the S-Doc Template Picklist

Complete this procedure when you configure S-Docs for a Custom Object. This lets you create S-Docs templates related to that object.

This procedure uses CustomObj__c as an example. Replace it with your Custom Object API name.

  1. Navigate to Setup > Object Manager.

  2. Search for S-Doc Template.

  3. Select S-Doc Template.

  4. Select Fields & Relationships.

  5. Search for Related to Type.

  6. Select Related to Type.

  7. Scroll to Values.

  8. Select New.

  9. Enter the Custom Object API name as a picklist value.

  10. Select Save.

For a Custom Object from an AppExchange managed package, enter the full API name. For example, enter package__CustomObj__c.

Last updated

Was this helpful?