DocGenPermsAndAccessChecksService Class
DocumentGenerationProcess Class
DocumentTemplate Class
Previous Versions
The DocumentGenerationProcess class provides methods to manage document generation processes.
1Map<String, Object> parameters = new Map<String, Object>();
2parameters.put('requestText','{}');
3parameters.put('type','GenerateAndConvert');
4parameters.put('status','InProgress');
5parameters.put('title','TestTitle');
6//industries_docgen.DocumentGenerationProcess.createDocumentGenerationProcess(parameters);
7Type type = Type.forName('industries_docgen.DocumentGenerationProcess');
8System.Callable docgen = (System.Callable) type.newInstance();
9docgen.Call('createDocumentGenerationProcess',parameters);This Apex code creates a DocumentGenerationProcess record for server-side document generation. This code uses a Map as input that contains all the required fields to create an entry in the database.
The following are methods for DocumentGenerationProcess.
Invokes a method with specified input parameters for the document generation process.
Invokes a method with specified input parameters for the document generation process.
public Object Call(String methodName, Map<String,Object> inputMap)
Map<String,Object> Map that contains input parameters for the method that is called.Type: Object