S-Docs: Retrieving Line Items via SOQL

S-Docs allows you to include the related list (line items) conveniently via its “Insert Related List” feature when creating your template.




Pretty convenient!

However, if you need more control or if you have a complex query to retrieve the related list, S-Docs allow you to construct your SOQL too. Following is a snippet example of how you can use SOQL to query the related list in S-Docs:



Product Quantity Total Price