AdvoLogix Help

Retrieving an Accrual via Code

Updated on

The following global Apex method can be used to retrieve an accrual by it's record id.

AccrualsService.getAccrual(
  @recordId,
  @fields
); 

Parameters:

@recordId
The record identifier of the Accrual record.

@fields
Optional. The comma-separated list of fields that would be returned for the accrual record.
(If left empty, then the result will include all fields from the Accrual)

Result:

The function call will return an object of type: advspm__Accrual__c. This object will have fields based on the input parameters.

Example:

advspm__Accrual__c accr = AccrualsService.getAccrual( 'a059000000RJhKTEA1' );
Next Article Retrieving an Accrual List via Code
Still need help? Click here!
AdvoLogix® is a registered trademark of AdvoLogix.com LLC a Texas Limited Liability Company. All references to other trademarks belonging to third parties that appear on this website, documentation, or other materials shall be understood to refer to those registered trademarks owned by others, and not to any trademark belonging to AdvoLogix. Otherwise, all material herein is the copyright of AdvoLogix.com LLC. All Rights Reserved.