Apex example 3: Sending Scrive document from Scrive template with addition of signing party
- scrive.ScriveDocument doc = scrive.ScriveDocument.createFromTemplate('Template Id from Scrive');
- Contact[] contacts = [SELECT Id, AccountId
- FROM Contact
- WHERE Id = '00358000007mZL2'];
- doc.addParty(contacts.get(0));
- doc.fillin();
- scrive.ScriveDeliveryService.send(doc);
Note that only Contact and User are currently accepted as source of Party.