Which type of script and which entry point are you...
# suitescript
a
Which type of script and which entry point are you trying to use getText?