Forum Discussion
kustrup
New Contributor
Thank you for the responses! I was able to resolve the issue with an IF statement:
If BRApi.Finance.Members.IsDescendant(si, _
BRApi.Finance.Dim.GetDimPk(si, "DIMENSION_NAME"), _
BRApi.Finance.Members.GetMemberId(si, dimTypeID.UD3, "PARENT_MEMBER"), _
BRApi.Finance.Members.GetMemberId(si, dimTypeID.UD3, DEPARTMENT_FOR_DATA_RECORD)) _
Then
That being said, it is definitely more efficient to use a global variable as franciscoamores said.
WernerN
15 days agoContributor
Was looking for something unrelated but your 'If Statement' inadvertently put me in the right direction. Much appreciate you sharing your code.
Related Content
- 11 months ago
- 11 months ago
- 11 months ago