Ryan Longenecker
11/23/2020, 8:55 PMSandii
11/23/2020, 8:58 PMnewValue1
should be the internalid of the list/record set in that field. Depending on the context, you might have to run a lookup to get the text value. Otherwise you can try .getText()
instead of getValue(). Not sure if I am understanding your dilemmaRyan Longenecker
11/23/2020, 8:59 PMRyan Longenecker
11/23/2020, 9:00 PMbattk
11/23/2020, 9:00 PMSandii
11/23/2020, 9:00 PMbattk
11/23/2020, 9:00 PMbattk
11/23/2020, 9:01 PMRyan Longenecker
11/23/2020, 9:01 PMRyan Longenecker
11/23/2020, 9:01 PMRyan Longenecker
11/23/2020, 9:51 PMrustyshackles
11/23/2020, 9:55 PMSandii
11/23/2020, 9:59 PMrustyshackles
11/23/2020, 10:05 PMRyan Longenecker
11/23/2020, 10:31 PMbattk
11/23/2020, 10:34 PMSandii
11/23/2020, 10:34 PMsearch.lookupFields()
returns an object with multiple properties (since you can retrieve multiple fields); if what the field you are looking up is just text, then just read the property from the returned object (yours looks like just text).
In the future, if the field is a list/multiselect, then you it should come back as an array with a value
and text
property.Ryan Longenecker
11/24/2020, 12:34 AM