Another subtle point above, make sure you are decl...
# suitescript
m
Another subtle point above, make sure you are declaring your map function as
function map(context)
. Which, you probably are, if you are following NS example code.