This method has been deprecated Matter Management v1.139.x onwards, please follow this article to use new method to Retrieve the Default Rate Via Code.
The following global Apex method can be used to retrieve the default Rate for a UTBMS Code or Matter, Timekeeper and/or Matter/Timekeeper.
Syntax:
AdvologixUtilities.getDefaultRate(
@matterId,
@timekeeperId,
@utbmsCodeId
);
Parameters:
@matterId
The record identifier of the Matter record.
@timekeeperId
The record identifier of the Timekeeper record.
@utbmsCodeId
Optional. The record identifier of the UTBMS Code record.
Result:
The function call will return an object of type: advpm__Rate__c. This object has the following fields:
- ID
The record identifier of the Rate object. (not returned when default rate for UTBMS Code is found)
- advpm__Rate__c
The Rate amount of the Rate object.
Example:
advpm__Rate__c rate = AdvologixUtilities.getDefaultRate(
'a059000000RJhKTEA1',
'a1A6000000GbrCTAA5', 'b0A000000RJhKTEA21
'
);
Example Result:
-
rate.Id
The record identifier of the Rate object. (not returned when default rate for UTBMS Code is found) -
rate.advpm__Rate_c
The Rate amount of the Rate object.