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. Use the JournalPost (Post Journals) custom permission to post the journals.

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. Use the JournalPost (Post Journals) custom permission to post the journals. 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. All rights reserved. Various trademarks held by their respective owners.