*Edit* I decided to abandon the idea of redirecting to the file. I realized that you can only open a file record in edit mode, something that isn't exactly desirable.
However, what are my options for redirecting to a different page in netsuite after the suitelet's execution? I would like to redirect the suitelet to another URL in netsuite, particularly the file cabinet:
if( request.method == GET ) //generate the form else //dostuff redirect to https://system.netsuite.com/app/common/media/mediaitemfolders.nl?folder=
Below is the original issue, but I guess it's not relevant.Can the response object's sendRedirect method redirect to a file in the file cabinet. I looked through the suitescript records browser and couldn't find an id for the record type of a file in the file cabinet. Is this possible?I wrote a suitelet that generates and uploads a file to the file cabinet and would like to redirect the user to that file. I guess I could attach the file to a customer record and then forward the user that the customer record, but I'd much rather redirect the user directly to the file itself.