Would you not just create a filter of document num...
# suitescript
k
Would you not just create a filter of document number and the value would be the internal id of the SO/