BhavayMangla
2 months agoNew Contributor II
Updating Text1 using business rule
Hey Guys, I was writing a rule to update a member description and text 1 field of the same member. I was able to update the member description, but can anyone help me with the text 1 field? Ple...
- 2 months ago
I used the following solution..
Dim SelectUD4 As String = args.NameValuePairs.XFGetValue("Param1")Dim UD4TextField As String = args.NameValuePairs.XFGetValue("Param3")'BRApi.ErrorLog.LogMessage(si,UD4TextField)' Get member infoDim memberinfo As MemberInfo = BRApi.Finance.Members.GetMemberInfo(si,dimtype.UD4.Id,SelectUD4,True)'Get member property from member infoDim memberproperty As UDVMProperties = memberinfo.GetUDProperties()'Set Text2 property as New propertymemberproperty.Text2.SetStoredValue(Scenariotype.Unknown.Id,DimConstants.Unknown,UD4TextField)'Save member info with text valueDim isNew = TriStateBool.TrueValueBRApi.Finance.MemberAdmin.SaveMemberInfo(si,memberinfo,False,True,False,isNew)