DocGenPermsAndAccessChecksService Class
DocumentGenerationProcess Class
DocumentTemplate Class
Previous Versions
The DocumentTemplate class provides methods to manage document generation templates.
1System.Callable connect = (System.Callable) type.newInstance();
2Map<String, Object> inputMap = new Map<String, Object>();
3inputMap.put('documentTemplateId', templateId);
4docTemplate = SObjectProxy.of(DocGenObjectMappings.getSObjectType(DocGenObjectMappings.DOCUMENT_TEMPLATE_STR).newSObject());
5Map<String, Object> mapData = (Map<String, Object>)connect.Call('getNamespaceByDocumentTemplateId', inputMap);This GET request retrieves the Namespace field from the DocumentTemplate entity, using the documentTemplate ID as input.
The following are methods for DocumentTemplate.
Invokes a method with input parameters to manage document templates.
Invokes a method with input parameters to manage document templates.
public Object Call(String methodName, Map<String,ANY> inputMap)
Map<String,ANY> Map that contains input parameters for the method that is called.Type: Object