AdvoLogix Help

Retrieving the Default Rate Via Code

Updated

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.

0 Comments

Add your comment

E-Mail me when someone replies to this comment

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Previous Article Rounding Hours Via Code
Next Article Adding the Quick Timer to the Sidebar (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.