UD7 Text Field

GouravM
New Contributor III

I am trying to assign the text field stored value in a variable in Business rule.

Here is my code that I am trying- but getting a compilation error.

 dim pov_U7text1 as String = api. pov.UD7.Tex1

 

Please advise

 

1 REPLY 1

Manasa
New Contributor III

Hi Gourav,

please try the below code and let me know if you are facing any issues

Dim u7Name As String = "Test1"
Dim U7Id As Integer = api.Members.GetMemberId(DimTypeId.UD7, u7Name)
Dim text1 As String = api.UD7.Text(U7Id, 1)

Thank you.