c2g.DocumentCreatePxServiceglobal with sharing class DocumentCreatePxService This service class provides document creation functionality. Only journals, cash entries, sales credit notes, sales invoices, payable invoices and payable credit notes are currently supported. Methods
createSyncWithResponseglobal static c2g.DocumentCreatePxService.Response createSyncWithResponse(List<c2g.DocumentCreatePxService.Document> documents) This service allows you to create documents synchronously. Input Parameters
Return ValueThe response with either the IDs of the document headers created or the list of errors. 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. c2g.DocumentCreatePxService.Responseglobal with sharing class Response Response returned by createSyncWithResponse method. Properties
Methods
Responseglobal Response(Set<ID> documentIDs, List<c2g.DocumentCreatePxService.Error> errors) The response constructor with document IDs and errors. c2g.DocumentCreatePxService.Errorglobal with sharing class Error An error returned in the response. Properties
Methods
Errorglobal Error(String errorMessage, String objectName, String fieldName, Integer index) The error constructor with error message, object name, field name and index. Errorglobal Error(String errorMessage, String objectName, String fieldName, String fieldLabel, Integer index) The error constructor with error message, object name, field name, field label and index. Errorglobal Error(String errorMessage, Schema.sObjectField sobjField, Integer index) The error constructor with error message, sobject field and index. |