Forum Discussion

OS_Love's avatar
OS_Love
New Contributor III
2 years ago

UD7 Text Field

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

 

  • Manasa's avatar
    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.