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
MarcusH
3 years agoValued Contributor
Get member description in user's culture code
Does anyone know how to get the member description in the user's culture code?
- 3 years ago
ok, you can access the descriptions with the memberinfo object:
Dim MemberIdOfAccount As Integer = BRApi.Finance.Members.GetMemberId(si, DimTypeId.Account, "41010") Dim test As MemberInfo = BRApi.Finance.Members.GetMemberInfo(si, DimTypeId.Account, MemberIdOfAccount,,,New MemberDisplayOptions(True,"en-US",True,False,False,False,False,0)) BRApi.ErrorLog.LogMessage(si, test.Descriptions("en-US").Description & " " & test.Descriptions("fr-FR").Description)
XaviC
2 months agoNew Contributor III
Does it work to get the FX Rates description? I have tried without success.
Thanks
JackLacava
OneStream Employee
2 months agoThe names and descriptions of Fx Rate Types don't have culture-specific versions, as far as I know. But if you mean simply getting what is there:
Dim scenarioid As Integer = BRApi.Finance.Members.GetMemberId(si, dimtype.Scenario.Id, "Actual")
Dim objFxRateType As FxRateType = BRApi.Finance.Scenario.GetFxRateTypeForAssetLiability(si, scenarioid)
brapi.ErrorLog.LogMessage(si, objFxRateType.NameAndDescription)