Returns the member ID of the top member of an account’s Custom 2 dimension hierarchy. In other words, this method returns the member ID of the Custom 2 member that has been defined as an account’s Custom2TopMember attribute.
<HsvAccounts>.GetTopMemberOfValidCustom2Hierarchy lItemID, plTopMember
See the Example for GetTopMemberOfValidCustom1Hierarchy, replacing that method with GetTopMemberOfValidCustom2Hierarchy.