and then just read that saved search into code
# suitescript
c
and then just read that saved search into code