KnotKnick
01/14/2021, 4:28 PMvar result = {
"recordType":"salesorder",
"id":"1234",
"values":{
"tranid":"678",
"companyname":"ABC",
"internalid.customerMain":{"value":"987","text":"987"}
}
}
I am trying to access i`nternalid.customerMain` by doing this var customer_id = result.values.internalid.customerMain.value
. However, I keep on getting this error TypeError: Cannot read property "value" from undefined
. The same thing happens if I try text
instead of value
. Can someone help me whats wrong with the code?Santiago
01/14/2021, 6:53 PMinternalid = result.getValue({name: 'internalid', join: 'Customer'});