AdvoLogix Help

Retrieving the Default Rate Via Code (deprecated)

Updated on

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.
Previous Article Billing Preview (legacy)
Next Article Batch Time Entry (legacy)
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.