record.Type should be PROJECT_TASK. must've skimme...
# suitescript
r
record.Type should be PROJECT_TASK. must've skimmed over that in the documentation.