SDK LWC Compared to SDJobs
SDK/LWC compared to SDJobs — SDK vs. S-Docs Jobs
Leverages S-Docs Jobs object as a part of S-Docs managed package
Inserts async Apex Job into Salesforce queue
Can support S-Docs email templates
Failures are reported via the status field on Job Object and more detailedly inside the associated Apex Job that is inserted
Many different managed invocable actions that can be leveraged in flows (regular document generation, batching, document generations w/ inputs at runtime -- read more in the link above)
Completes synchronous document generation (no reliance on Apex Job queue)
Invocable (via flow) cannot support S-Docs email templates, but can still leverage Salesforce email quick actions for delivering documents
If leveraging the Salesforce email quick action you will need to embed a link in the email body for document viewing OOTB Salesforce the email quick action will not allow for attachments
Support for S-Docs email templates coming in our 7.2 version release of S-Docs slated for release approximately in July
The SDKs allow for some flexibility as they can be called into action via Custom Apex, with the exception of the Apex Trigger context. Read more about supported contexts in the linked article above.
In the other Apex contexts, there is the possibility to leverage an S-Docs email template for sending.
Invocably, errors are handled at the flow level (email for reason of flow failure to System Admin)
SDK/LWC compared to SDJobs — RTPs vs. SDK w/ Inputs
RunTime Prompts (RTPs)
RTPs are configured at the template level and are native to the S-Docs product
Best for when you have a smaller number of inputs required (less than 25)
Not compatible with document generation methods that are automated: SDK, LWC, S-Docs Jobs
Only compatible with manual button-click S-Docs generation which progresses you through the visualforce pages required to fill out the RTPs
Offers slightly less flexibility for validations/formatting of data input
SDK with Inputs (view additional attached documentation)
Leverages invocable actions with the power of Salesforce screenflows
Can accommodate many more inputs ( greater than 25)
Only compatible with document generation via a Salesforce screenflow
The Salesforce screenflow allows for more flexibility in formatting data inputs and enforcing validation rules (when write-back is a requirement)
Only can be supported for PDF file type outputs
Support for emailing documents generated via this method, with an S-Docs email template, coming in our next product release (S-Docs 7.2) which is estimated to be released around the end of June/early July
Last updated
Was this helpful?

