TimeCardPostService Class

Overview

The following provides information regarding posting API calls for Time Card Posting:

Time Card Post Considerations

You cannot call post method with more than 1,000 Time Cards. If you need to post or un-post more than 1,000 Time Cards you will need to call the class static method from a class which implements the Apex batchable interface.


TimeCardPostService Post Methods

The following are the global methods for the TimeCardPostService class. All methods are instance methods.

postTimeCards(List<Time_Card__c>)

Post one or many TimeCard records

Signature

 global static List<PostResult> postTimeCards(List<Time_Card__c> timeCards)

Parameters
Type: [List<Time_Card__c>]

Return Value
Type: List<PostResult>


unpostTimeCards(List<Time_Card__c>)

Unpost one or many TimeCard records

Signature

 global static List<PostResult> unpostTimeCards(List<Time_Card__c> amortizationEntries)

Parameters
Type: [List<Time_Card__c>]

Return Value
Type: List<PostResult>

Time Card Post Error Codes

The following error codes are supported for TimeCardPostService: