Accounting Apex API Developer Reference

c2g.CancelPxService

global with sharing class CancelPxService

this service class provides document cancel functionality. only journals are currently supported.

Methods

cancelSync

global static Set<ID> cancelSync(Set<ID> sourceIds)

This service allows you to create canceling documents synchronously. These documents can be edited before posting. Use the JournalCancelJournal (Cancel Journals) custom permission to cancel the journals.

Input Parameters

Name Type Description
sourceIds Set<ID> Identifies the documents to be cancelled.

Return Value

The IDs of the canceling documents created.

cancelAsync

global 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

Name Type Description
sourceIds Set<ID> Identifies the documents to be cancelled.

Return Value

The ID of the async job. This can be monitored from the "Apex Jobs" page.

© Copyright 2009–2022 FinancialForce.com, inc. All rights reserved. Various trademarks held by their respective owners.