I am trying to write a ss1.0 code to download the ...
# suitescript
a
I am trying to write a ss1.0 code to download the CSV run status into the system. I used the below code. Call get 200 response code but shows a out put as login page. Any idea will help.
Copy code
var header = {
	"User-Agent-x" : "SuiteScript-Call" ,
	"Content-Type" : "text/xml"
    };
    var cvsResponse = nlapiRequestURL('<https://system.na2.netsuite.com/app/setup/upload/csv/uploadlogcsv.nl?wqid=97438>', null, header);
    nlapiLogExecution('DEBUG', 'CSV call -> 97438');
    var b = cvsResponse.getCode()
    nlapiLogExecution('DEBUG', 'Response Code', b);
    nlapiLogExecution('DEBUG', 'Body', cvsResponse.getBody());
r
I dont think that is possible, at least I have not been able to make it work
a
Ok.. Do you see any alternative to this
r
I was not able to find one