cancel
Showing results for 
Search instead for 
Did you mean: 

String to lookup value

Former Member
0 Kudos

Hi,

How do i convert a string value to lookup table type and set it in the record?

Thanks,

Rekha

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi rekha,

For this you can follow any of the below approach:

NOTE: For linking a lookup value, you need to have a Record Id (not value) for the lookup record.

1: Say you are displaying the values for lookup in a DropDown (e.g Country) then at the time of getting the values from MDM you can also populate the associated Record ID for the record and later on use it for linking with the record.

2. Another approach would be to take the input from the user using a Inputfield and then searching this value in the Lookup taqble using Java APIs. Once you fint the matching record, you can get the record Id from here and us it for linking purpose.

Hope this helps!!

Cheers,

Arafat

Former Member
0 Kudos

Hi,

It helps.Thanks

Rekha