I have a locked suitelet script -A, which accepts ...
# suitescript
s
I have a locked suitelet script -A, which accepts a parameter and processes something. I have another suitelet -B, which is supposed to run multiple of the suitelet A one by one. I have tried multiple solutions to this, like loading suitelet A url one by one, but post one execution, we leave script control of suitelet B due to redirection Another solution was to generate an external url and load them one by one, but then external url throws a login screen. Any ideas on this?
b
what did your code look like
s
Copy code
for (var i = 0; i < lineCount; i++) {
  var internalId = record.getSublistValue({
    sublistId: 'custpage_table',
    fieldId: 'internalid',
    line: i
  });
  
  var url = `<https://1111111-sb1.app.netsuite.com/app/site/hosting/scriptlet.nl?script=579&deploy=1&compid=1111111_SB1&compid=1111111_SB1&packageSource=3&params1=1084267&id=1084267&internalId=${internalId}&whence=>`
  
  urlArr.push(url)
}
  
urlArr.forEach((result)=>{
	var win = window.open(result, 'chromeWindow', 'ASN Popup');
	setTimeout(() =>  win.close(), 2000);
})
idea was that we could load the suitelet in a window and once it is processed, we close it. But this seem to fail as well
b
you are using the same target for window.open, which will open in the same tab
a
@battk sir i tried that also but it still opening single window,i tried to change the name of window still it open single tab only
b
what did your attempt look like