AmortizationPostService Class
Overview
The following provides information regarding posting API calls for Amortization:
Amortization Post Considerations
You cannot call post method with more than 1,000 Amortizations. If you need to post or un-post more than 1,000 Amortizations you will need to call the class static method from a class which implements the Apex batchable interface.
Amortization Post Methods
The following are the global methods for the AmortizationPostService class. All methods are instance methods.
postAmortizationEntries(List<Scheduled_Revenue_Expense__c>)
Post one or many Amortization (Scheduled_Revenue_Expense__c) records
Signature
global static List<PostResult> postAmortizationEntries(List<Scheduled_Revenue_Expense__c> amortizationEntries)
Parameters
Type: [List<Scheduled_Revenue_Expense__c>
]
Return Value
Type: List<PostResult>
unpostAmortizationEntries(List<Scheduled_Revenue_Expense__c>)
Unpost one or many Amortization (Scheduled_Revenue_Expense__c) records
Signature
global static List<PostResult> unpostAmortizationEntries(List<Scheduled_Revenue_Expense__c> amortizationEntries)
Parameters
Type: [List<Scheduled_Revenue_Expense__c>
]
Return Value
Type: List<PostResult>
AmortizationPostService Error Codes
The following error codes are supported for AmortizationPostService:
- CLOSED_ACCOUNTING_PERIOD - accounting period associated with the journal entry is closed.
- ALREADY_POSTED - record is already posted you are attempting to post.
- NO_SELECTION_POSTED_ERROR_MESSAGE - No qualifying records have been selected. Please ensure records are associated with an accounting period which has a status of Open and the record status is Approved.
- NO_SELECTION_UNPOSTED_ERROR_MESSAGE - No qualifying records have been selected. Please ensure records are associated with an accounting period which has a status of Open and the record has a status of Posted.