c2g.DocumentCreatePxServiceglobal with sharing class DocumentCreatePxService This service class provides document creation functionality. Only journals, sales credit notes, sales invoices, payable invoices and payable credit notes are currently supported. Methods
createSyncglobal static Set<ID> createSync(List<c2g.DocumentCreatePxService.Document> documents) This service allows you to create documents synchronously. Input Parameters
Return ValueThe IDs of the document headers created. createAsyncglobal static ID createAsync(List<c2g.DocumentCreatePxService.Document> documents) This service allows you to create documents asynchronously using an Apex Job. The createAsync method can handle larger documents than the createSync method. Input Parameters
Return ValueThe ID of the async job. This can be monitored from the "Apex Jobs" page. c2g.DocumentCreatePxService.Documentglobal virtual with sharing class Document A container for the records that make up a document. Properties
Methods
Documentglobal Document(SObject header, List<SObject> lines, List<SObject> expenseLines) The document constructor with multiple line type. |