c2g.CancelPxServiceglobal with sharing class CancelPxService This service class provides document cancel functionality. Only journals are currently supported. MethodscancelSyncglobal static Set<ID> cancelSync(Set<ID> sourceIds) This service allows you to create canceling documents synchronously. These documents can be edited before posting. Input Parameters
Return ValueThe IDs of the canceling documents created. cancelAsyncglobal static ID cancelAsync(Set<ID> sourceIds) This service allows you to create canceling documents asynchronously using an Apex Job. The cancelAsync method can handle larger documents than the cancelSync method. Input Parameters
Return ValueThe ID of the async job. This can be monitored from the "Apex Jobs" page. |