+ Start a Discussion
Namina P VNamina P V 

generate sdocs document from apex class


Can I generate sdoc documents directly from apex class, and update some fields according to that?
NagendraNagendra (Salesforce Developers) 
Hi Namina,

Here's one sample example on how to create sdoc using apex trigger:
trigger CreateSDOC on SCS_Faculty_Contract__c (before update) {
for (SCS_Faculty_Contract__c l : Trigger.new)
if (l.Status__c == 'Contract generated'){
For more information on the above requirement please check with the below post from the sdocs forums:

Kinldy mark this as best answer if it's resolved.

Best Regards,