The OneStream Community is temporarily frozen until June 29th due to the ongoing maintenance. Please read the blog post here to learn more.
Forum Discussion
YahyaOS
2 years agoNew Contributor II
Advanced Transformation rules mapping and Dimension Library
Hello Everyone,
I'm trying to build an advanced transformation rule based on a member present in my dimension.
For example, I want to bypass all lines that contain a member not existing in my UD3...
Steven
2 years agoContributor II
Use BRApi.Finance.Metadata.GetMember.
If this is Nothing, then Bypass
Else
Return MemberName
YahyaOS
2 years agoNew Contributor II
Thank you, Steven, for your help.
Could you please provide more details( an example if possible)?, as I am new to OneStream, should I implement this in a complex expression in my Transformation Rule (TR) or in a Business Rule?
Best regards,
Yahya
- Steven2 years agoContributor II
Something like this:
Dim UD3 As String = args.GetSource("UD3#")Dim UD3Final As String = String.EmptyDim mem As Member = BRApi.Finance.Metadata.GetMember(si, dimTypeId.UD3, UD3)If mem is Nothing ThenUD3Final = "(BYPass)"End Ifreturn UD3