A Quick reference to S-Docs

S-Docs is a tool to create documents for the user in salesforce. It is simple, smart, fast and secure document generator built for salesforce platform.

S-Docs allows you to generate a variety of outputs that can merge Salesforce data from both standard and custom objects. One can include data from formula fields, rich text, parent records, child, grandchild and related objects all within the same document.
To call S-docs service on click of a button, use the URL below:


where myObject__c is a custom object.

Similarly, one can call standard object also.

Below are some features of S-Docs that can be helpful while creating pdf files inside salesforce:
1. Link many objects to one document : This can be done by adding a
lookup field to the SDoc_Relationship__c object.
2. Saving S-Docs as attachments. Below is the setting in Template Editor that is needed:

3. Use your own stylesheet or CSS Solution. Go to the template editor, then click on the “Source” button.. You can then copy your own tags at the start of the page

4. Change page size and orientation : By adding @page annotation in style tag.
Ex –

It can also be set by using page settings option available in S-Docs Template as shown below screenshot:

Embedding static images into your document: For static images, like a company logo, you can simply use an image tag similar to the following in your S-Docs template source.

5. Add related lists or line items to your documents : Below is the syntax

We add style class in class tag. If no css is needed, then use none in place of style class.

Or one can use direct soql :

Account Team Members: