Forum Discussion

cap08's avatar
cap08
New Contributor III
3 months ago

How to get UD1 Default Values

Hello,  I need to extract all the UD1 Default values and am stuck on statements 3 and 4 in the example below.   Example using cost center 1100: Dim strUD1Member As String = "1100" 1-Dim UD1Me...
  • ckattookaran's avatar
    3 months ago

    I went with your example.

     
    Dim mbrUD1 As Member = BRApi.Finance.Members.GetMember(si, DimTypeId.UD1, "CourseMgt")
     
    brapi.ErrorLog.LogMessage(si, BRApi.Finance.Members.GetMember(si, DimTypeId.UD2, BRApi.Finance.UD.GetDefaultUDMemberId(si, mbrUD1.MemberId, DimTypeId.UD2, -1)).Name)
     
    You get a UD1, then you loop it through UD2 to UD8 and get the name.
  • cap08's avatar
    3 months ago

    Got it! Thanks!!