APDisbursementPostService Class
Overview
The following provides information regarding posting API calls for AP Disbursement (APD):
AP Disbursement Post Methods
The following are the global methods for the APDisbursementPostService class. All methods are instance methods.
postApDisbursements(List<AP_Disbursement__c>)
Post one or many APD records
Signature
global static List<PostResult> postApDisbursements(List<AP_Disbursement__c> apDisbursements)
Parameters
Type: [List<AP_Disbursement__c>
]
Return Value
Type: List<PostResult>
AP Disbursement Post Error Codes
The following error codes are supported for APDisbursementPostService:
- CLOSED_ACCOUNTING_PERIOD - Accounting Period status must be Open.
- NO_CONTROL_ACCOUNT_MESSAGE - You must specify a AP Control Account in order to post the AP Cash Disbursement(s). Please set the AP Control Account in the Account Settings tab.
- DEBIT_GL_ACCOUNT_VALIDATION_ON_INSERT_ERROR_MESSAGE - A Cash Disbursement can not be applied to unpaid Payable records when the Debit GL Account is null or set to the AP Control Account.
- DEBIT_GL_ACCOUNT_VALIDATION_ON_POST_ERROR_MESSAGE - AP Disbursement record can not be posted when the Debit GL Account is null or set to the AP Control Account.