I'm getting multiple values from a saved search but one particular field (which has a value) shows as null - below is from my search load
var current_ytd_sales = result.getValue({
name: 'custentity_sp_ytd_sales',
join: 'customerMain',
summary: 'GROUP'
});
In the saved search the field has summary type Group. Any reason why it's showing null?
b
battk
10/14/2020, 2:34 PM
What does the logged value of result look like
m
mg2017
10/14/2020, 2:38 PM
message has been deleted
mg2017
10/14/2020, 2:38 PM
comes back as null
b
battk
10/14/2020, 2:39 PM
None of those are the logged value of result
battk
10/14/2020, 2:40 PM
Log your result variable
m
mg2017
10/14/2020, 2:55 PM
the result shows me the join as customer and not customerMain - having updated that, it now works. many thanks. odd, however, that given the other fields bring back data from the join: customerMain