Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.

DocumentGenerationProcess Class

The DocumentGenerationProcess class provides methods to manage document generation processes.

Namespace

industries_docgen

Example

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.

DocumentGenerationProcess Methods

The following are methods for DocumentGenerationProcess.

Call(methodName, inputMap)

Invokes a method with specified input parameters for the document generation process.

Signature

public Object Call(String methodName, Map<String,Object> inputMap)

Parameters

  • methodName: Type: String Name of the method to be called.
  • inputMap: Type: Map<String,Object> Map that contains input parameters for the method that is called.

Return Value

Type: Object