Accounting Apex API Developer Reference

c2g.ReversePxService

global with sharing class ReversePxService

This service class provides document reversal functionality. Only journals are currently supported.

Methods

reverseSync

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

This service allows you to create reversing documents synchronously. These documents can be edited before posting.

Input Parameters

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

Return Value

The IDs of the reversing documents created.

reverseAsync

global static ID reverseAsync(Set<ID> sourceIds)

This service allows you to create reversing documents asynchronously using an Apex Job. The reverseAsync method can handle larger documents than the reverseSync method.

Input Parameters

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

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.