RE: How do get results from scheduled script that has been triggered by suitelet N/task ?
I currently have a suitelet that generates a PDF and shows it in the browser with a button is pressed. For scalability reasons, I need to move this into a scheduled script or map reduce script and use the N/task library.
I have the N/task kicking off the scheduled script in my suitelet post section:
I’d consider handling your task with a Suitelet. If it’s as simple as making a PDF, you don’t need a map/reduce or scheduled script to handle it and you can get around the queue.
If it’s a bit more cumbersome than just simple PDF creation, I would perhaps try something like writing the PDF down somewhere that you can go retrieve it from in your suitelet.