I'm getting multiple values from a saved search bu...
# suitescript
m
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
What does the logged value of result look like
m
message has been deleted
comes back as null
b
None of those are the logged value of result
Log your result variable
m
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