Try this: params.custscript_bmi_unbuild_filename =...
# suitescript
a
Try this: params.custscript_bmi_unbuild_filename = filename.toString();