Accounting Apex API Developer Reference

c2g.PostingPxService

global with sharing class PostingPxService

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

Methods

postSync

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

This service allows you to post documents synchronously.

Input Parameters

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

Return Value

The IDs of the transactions created.

postAsync

global static ID postAsync(Set<ID> sourceIds)

This service allows you to post documents asynchronously using an Apex Job. The postAsync method can handle larger documents than the postSync method.

Input Parameters

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

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.