All exported global Apex declarations

Inspect the current global types, method overloads, request fields, and optional extension.

Read as Markdown · Open in the interactive guide

This inventory is generated from the same source checkout as the guide. It includes core global types, nested request/result types and fields, interface methods, and the optional Agentforce extension. It gives you an exact place to check an overload or DTO field while using the worked integration articles.

Before you start: Use the portwoodglobal namespace for core types in subscriber Apex. The optional extension requires its own installation/setup. Published legacy members remain in this list; their presence does not make them the preferred API for new work. Read the action compatibility notes and utility limits.

A source update that changes an exported declaration makes the generated guide stale until it is rebuilt. Review the related integration article and test your subscriber code against the new released package before marking the next release reviewed.

DocGenAiProvider

Core · Source

global interface DocGenAiProvider
Boolean isAvailable()
String getName()
String generateHtml(String prompt)

DocGenBulkFlowAction

Core · Source

global with sharing class DocGenBulkFlowAction
global class Request
global Id templateId
global String templateApiName
global String queryCondition
global List<String> recordIds
global String sortOrder
global String jobLabel
global Boolean combinedPdfOnly
global Boolean keepIndividualFiles
global Boolean duplexPadding
global Integer batchSize
global class Response
global Id jobId
global String errorMessage
global Boolean success
global static List<Response> generateBulkDocuments(List<Request> requests)

DocGenChartCvReaper

Core · Source

global with sharing class DocGenChartCvReaper implements Schedulable
global void execute(SchedulableContext ctx)
global static Integer reap()

DocGenDataProvider

Core · Source

global interface DocGenDataProvider
Map<String, Object> getData(Id recordId)
List<String> getFieldNames()

DocGenEmailTemplateInstall

Core · Source

global with sharing class DocGenEmailTemplateInstall implements InstallHandler
global void onInstall(InstallContext context)
global static Integer seedDefaults()

DocGenEmailTemplateService

Core · Source

global with sharing class DocGenEmailTemplateService
global static final String TYPE_REQUEST = 'Signature_Request'
global static final String TYPE_REMINDER = 'Signature_Reminder'
global static final String TYPE_PIN = 'Verification_PIN'
global static final String TYPE_SIGNER_COMPLETED = 'Signer_Completed'
global static final String TYPE_ALL_SIGNED = 'All_Signed'
global static final String TYPE_DECLINED = 'Signer_Declined'
global static final String TYPE_REVOKED = 'Signature_Revoked'
global static final String TYPE_COMPLETION = 'Completion_Confirmation'
global static final List<String> ALL_TYPES = new List<String>
global static final String MODE_MANAGED = 'Managed'
global static final String MODE_FULL_HTML = 'Full_Html'
global class RenderedEmail
global String subject
global String htmlBody
global String plainBody
global static RenderedEmail render(String type, Map<String, String> tokens)
global static RenderedEmail render(String type, Map<String, String> tokens, String messageOverride)
global static RenderedEmail render(String type, Map<String, String> tokens, String messageOverride, Id brandId)
global static String renderSubject(String subjectTemplate, Map<String, String> tokens)

DocGenException

Core · Source

global with sharing class DocGenException extends Exception

DocGenFieldWritebackService

Core · Source

global without sharing class DocGenFieldWritebackService
global class WritebackRequest
global String requestId
global WritebackRequest()
global static void writeBackFields(List<WritebackRequest> requests)

DocGenFlowAction

Core · Source

global with sharing class DocGenFlowAction
global class Request
global Id templateId
global String templateApiName
global Id recordId
global Boolean saveToRecord
global String documentTitle
global String outputFormatOverride
global String jsonData
global class Response
global Id contentDocumentId
global Id contentVersionId
global String errorMessage
global Boolean success
global static List<Response> generateDocument(List<Request> requests)

DocGenGiantQueryFlowAction

Core · Source

global with sharing class DocGenGiantQueryFlowAction
global class Request
global Id templateId
global Id recordId
global Boolean saveToRecord
global class Response
global Id contentDocumentId
global Id contentVersionId
global Id jobId
global Boolean isGiantQuery
global String errorMessage
global Boolean success
global static List<Response> generateDocument(List<Request> requests)

DocGenMigrationRest

Core · Source

global with sharing class DocGenMigrationRest
global static void readConfiguration()
global static void createConfiguration()
global static void discardStage()

DocGenPdfMergeFlowAction

Core · Source

global with sharing class DocGenPdfMergeFlowAction
global class Request
global List<String> contentVersionIds
global String contentVersionIdsText
global String documentTitle
global Id relatedRecordId
global Boolean padOddDocuments
global class Response
global Id contentVersionId
global Id contentDocumentId
global Boolean success
global String errorMessage
global static List<Response> mergePdfs(List<Request> requests)

DocGenPdfMerger

Core · Source

global with sharing class DocGenPdfMerger
global class DocGenPdfMergeException extends Exception
global static Blob mergePdfs(List<Blob> pdfs, Boolean padOddDocuments)
global static Blob mergePdfCvs(List<Id> partCvIds, Boolean padOddDocuments)
global static Integer pageCount(Blob pdf)

DocGenService

Core · Source

global with sharing class DocGenService
global static Map<String, Object> generatePdfBlob(Id templateId, Id recordId)
global static Id generateDocument(Id templateId, Id recordId)
global static Id generateDocument(Id templateId, Id recordId, String outputFormatOverride)
global static Id generateDocument(Id templateId, Id recordId, String outputFormatOverride, String documentTitle)
global static Id generateDocument( Id templateId, Id recordId, String outputFormatOverride, String documentTitle, Id attachmentRecordId )
global static Id generateDocumentFromData(Id templateId, Id recordId, Map<String, Object> preloadedRecordData)
global static Map<String, Object> generatePdfBlobFromData( Id templateId, Id recordId, Map<String, Object> preloadedRecordData )
global static Map<String, Object> generatePdfBlobFromData(Id templateId, Map<String, Object> dataMap)
global static Id generateAndSaveFromData( Id templateId, Id attachmentRecordId, Map<String, Object> dataMap, String outputFormatOverride )
global static Id generateAndSaveFromData( Id templateId, Id attachmentRecordId, Map<String, Object> dataMap, String outputFormatOverride, String documentTitle )
global static Id generateAndSaveFromData( Id templateId, Id attachmentRecordId, Map<String, Object> dataMap, String outputFormatOverride, String documentTitle, Id fileAttachmentTarget )

DocGenSignatureFinalizer

Core · Source

global without sharing class DocGenSignatureFinalizer
global class FinalizeRequest
global String token
global String base64Image
global static void finalizeSignature(List<FinalizeRequest> requests)

DocGenSignatureFlowAction

Core · Source

global with sharing class DocGenSignatureFlowAction
global class Signer
global Signer()
global String name
global String email
global String role
global Id contactId
global class Request
global Id templateId
global String templateApiName
global Id relatedRecordId
global List<Signer> signers
global List<DocGenSigner> signerRecords
global List<String> signerNames
global List<String> signerEmails
global List<String> signerRoles
global List<String> signerContactIds
global Boolean sendEmails
global String signingOrder
global String emailMessage
global String emailSubject
global Boolean requireEmailVerification
global Boolean prefillSignerEmail
global Integer expirationDays
global class Result
global Id signatureRequestId
global List<String> signerUrls
global List<String> signerNames
global List<String> signerEmails
global List<String> signerRoles
global String emailStatus
global Boolean success
global String errorMessage
global static List<Result> generate(List<Request> requests)

DocGenSignaturePdfFlowAction

Core · Source

global with sharing class DocGenSignaturePdfFlowAction
global class Request
global Id templateId
global Id contentVersionId
global Id relatedRecordId
global List<DocGenSigner> signerRecords
global String signingOrder
global String documentTitleFormat
global class Result
global Id signatureRequestId
global List<String> signerUrls
global List<String> signerNames
global List<String> signerEmails
global List<String> signerRoles
global Boolean success
global String errorMessage
global static List<Result> send(List<Request> requests)

DocGenSignaturePreparationController

Core · Source

global with sharing class DocGenSignaturePreparationController
global static List<Contact> searchContacts(Id recordId, String search)
global static Map<String, Object> getContext(Id recordId)
global static Map<String, Object> uploadPdf(Id recordId, String fileName, String base64Pdf)
global static Map<String, Object> selectPdf(Id recordId, Id contentVersionId)
global static Map<String, Object> loadDraft(Id recordId, Id draftId)
global static Integer saveDraft(Id recordId, Id draftId, Integer expectedRevision, String configJson)
global static Map<String, Object> sendDraft(Id recordId, Id draftId, Integer expectedRevision, String configJson)

DocGenSignatureSubmitter

Core · Source

global without sharing class DocGenSignatureSubmitter
global class FlowInput
global String token
global String signatureData
global class FlowOutput
global Boolean isSuccess
global String errorMessage
global static List<FlowOutput> submitSignature(List<FlowInput> inputs)

DocGenSignatureValidator

Core · Source

global without sharing class DocGenSignatureValidator
global class FlowInput
global String token
global class FlowOutput
global Boolean isValid
global String errorMessage
global String signerName
global String documentTitle
global String documentUrl
global static List<FlowOutput> validateToken(List<FlowInput> inputs)

DocGenSigner

Core · Source

global class DocGenSigner
global DocGenSigner()
global String name
global String email
global String role
global Id contactId

DocGenEinsteinProvider

Optional Agentforce extension · Source

global with sharing class DocGenEinsteinProvider implements DocGenAiProvider
global String getName()
global Boolean isAvailable()
global String generateHtml(String prompt)
global class DocGenAiException extends Exception