Does anyone know if there is a way to call an inte...
# suitescript
j
Does anyone know if there is a way to call an internal URL of a page in NS from a script. My use case is that I want to “scrape” this page
<https://XXXXX.app.netsuite.com/app/common/custom/itemoptions.nl?whence=>
or ideally the actual CSV download link from that page
<https://XXXXXX.app.netsuite.com/app/common/custom/itemoptions.csv?bundlefilter=BLANK&sortcol=rank&sortdir=ASC&csv=Export&OfficeXML=F&pdf=&size=1000&showall=T>
I’ve tried calling both using https.get and proper oauth headers but it just takes me to a login page. I know it’s something to do with that URL and that otherwise my headers are ok, as I’ve tested by calling the URL of an internal-only Suitelet and THAT works just fine.