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.

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. 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–2021 FinancialForce.com, inc. Confidential – all rights reserved. Various trademarks held by their respective owners.