<@U013PDCADJ5> I've done this by doing the followi...
# suitescript
d
@Sim Greenbaum I've done this by doing the following. I'm sure there is a better way to go about it, though. Just schedule your Map/Reduce prior to writing the page.
Copy code
var scriptText = "<html><script type=\"text/javascript\">" + 
        	"var url='/app/accounting/transactions/purchord.nl?whence=&entity=" + vendorID + "'; " + 
        	"var w = window.location.replace(url);" +  
        	'</script></html>';
    		
    		context.response.write(scriptText);