if i ignore the part about customer, I would tell ...
# suitescript
b
if i ignore the part about customer, I would tell you to use the N/record module or the N/search module to get your data