I have a problem when I call a script throught aja...
# suitescript
s
I have a problem when I call a script throught ajax. This is the call var response = https.post({ url: 'https://......app.netsuite.com/app/site/hosting/scriptlet.nl?script=3325&deploy=1', headers: headers, I would like to make it async, what should I do ?
m
s
I have not been clear enough I have a client script that call a suitelet. It's working fine but the client is waiting for the suitelet to completed. I don't want that. I want the suitelet to execute and not wait. I'm looking at the suite answer and it says 'Note that when a Suitelet is invoked by this method, it will wait for all the pending promises to finish.'
I think i will go with a iframe
d
offload the work to a scheduled or m/r script
s
That's what we had before. The issue is that we have 40 users working at the same time, The scheduler was not able to support more than 15 at a time 😞
d
Use the N/cache module to notify the users of the suitelet that it's already in use or processing the same/similar data
s
They are shipping an average of 50k packages a day. Users cannot wait. I already started implementing the iframe and so far, it looks good but I'm not proud of it, however the users will be happy Thanks