on 04-25-2022 08:40 AM
Update Text1 value for Account member
'>>>>>>>>>>>>>>CAUTION<<<<<<<<<<<<<<<<
'BRApi.Finance.MemberAdmin.SaveMemberInfo
'This API does not make entries into the Audit tables and will not be reflected in the Audit Metadata Report
'Recommended usage of this API during implementation only
'Get the MemberInfo object for the member you want to update, account member in this example.
Dim objMemberInfo As MemberInfo = BRApi.Finance.Members.GetMemberInfo(si, DimType.Account.Id, "<Member Name>", True)
'Modify some member properties.
Dim accountProperties As AccountVMProperties = objMemberInfo.GetAccountProperties()
accountProperties.AccountType.SetStoredValue(AccountType.Revenue.Id)
accountProperties.Text1.SetStoredValue(ScenarioType.Unknown.Id, DimConstants.Unknown, "<UpdatedValue>")
'Save the member and its properties.
Dim isNew As TriStateBool = TriStateBool.TrueValue
BRApi.Finance.MemberAdmin.SaveMemberInfo(si, objMemberInfo, False, True, False, isNew)