Morning All, I am having a bit of an issue getting...
# suitescript
k
Morning All, I am having a bit of an issue getting a search result. My results are
Copy code
[{"recordType":"customrecord5","id":"2387174","values":{"name":"W3242"}}]
and I am using
results[0].values.name
within console this works no issue at all but within a UserEvent Script I am getting the error of
org.mozilla.javascript.EcmaError: TypeError: Cannot read property "name" from undefined
Can anyone shed any light on this?
r
It is supposed to be results[0].getValue({name: 'name});