Main variables and methods
ScriveDocument
The main class, ScriveDocument, includes a lot of global methods which can be easily used in custom code.
ScriveDeliveryService
ScriveGlobal
This class exposes Scrive Document actions to your local instance. The following Scrive actions are available to your Apex code:
- Send Reminder
- Remove
- Withdraw
- Restart
- Forward
Each method returns a new global class ScriveGlobal.ScriveDocumentResult, with the following parameters:
- Boolean isSuccess
- String errorMessage - in case of error, provides details of the issue
Example:
scrive.ScriveGlobal.ScriveDocumentResult result = scrive.ScriveGlobal.restart(documentId);
if(!result.isSuccess){
//Do something
}