Discussions
Stay up-to-date with the latest news from NetSuite. You’ll be in the know about how to connect with peers and take your business to new heights at our virtual, in-person, on demand events, and much more.
Now is the time to ask your NetSuite-savvy friends and colleagues to join the NetSuite Support Community! Refer now! Click here to watch and learn more!
Stay in the Know
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
Closing an nlapiRequestURL request "early"
Hi, everyone,
I've written a webapp for my company which takes invoice numbers and email addresses, generates a custom (highly customized) invoice PDF, then emails the correct PDFs to the correct email addresses. Works great.
The problem is Netsuite 45 second timeout. Some of our customers will have 30+ invoices that need PDFs generated, and the act of getting the invoice data out of Netsuite for 30 records takes longer than 45 seconds. This means that it will generate the PDFs and even email them, but when it tries to report back to Netsuite to say "Done! Go ahead with the next email!", Netsuite has already halted the script with an EXCEEDED_TIME_LIMIT error...
I've written a webapp for my company which takes invoice numbers and email addresses, generates a custom (highly customized) invoice PDF, then emails the correct PDFs to the correct email addresses. Works great.
The problem is Netsuite 45 second timeout. Some of our customers will have 30+ invoices that need PDFs generated, and the act of getting the invoice data out of Netsuite for 30 records takes longer than 45 seconds. This means that it will generate the PDFs and even email them, but when it tries to report back to Netsuite to say "Done! Go ahead with the next email!", Netsuite has already halted the script with an EXCEEDED_TIME_LIMIT error...
0