c2g.CancelPxServiceglobal with sharing class CancelPxService This service class provides document cancel functionality. Only journals and cash entries 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 except cash entries. Use the JournalCancelJournal (Cancel Journals) custom permission to cancel the journals. 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. Use the JournalCancelJournal (Create and post cancelling journals) custom permission to cancel the journals. 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. |