Discussions
Join the NetSuite community to innovate, connect, and discover what’s next.
SuiteWorld brings thousands of innovators, builders, and leaders together to learn, connect, and shape what’s next. This October, explore how to build a stronger foundation for growth through inspiring keynotes, major product reveals, hands-on sessions, and unforgettable moments—all in one place for our biggest event of the year. Register now
New to NetSuite | N/record: record.delete.promise(options) method
In our previous article, New to NetSuite | Understanding SuiteScript 2.x Modules, we explored the SuiteScript Modules and N/record module, New to NetSuite | N/record Module Overview, which is used to interact with records. Now, we will take a closer look at one of the members of N/record: record.delete.promise(options) method
The method record.delete.promise(options) is used to delete a record asynchronously using Promises (SuiteScript 2.1+ syntax). It's the asynchronous equivalent of record.delete(options).
It improves script performance, keeps your code cleaner, and enables better handling of long-running operations. This approach is especially helpful when building Suitelets, Map/Reduce scripts, or tools for cleaning up temporary records, as it allows scripts to process records without blocking execution and can lead to more scalable, maintainable solutions.
Richard James Uri - SuiteCloud | WMS Tech | SuiteCommerce Advanced
----
- NetSuite Admin Corner | New to NetSuite
- Explore the NSC Webinars Category
- Join our poll and share your ideas! We want to know what you think. Don't forget to comment and make your voice heard!
- Expand your NetSuite knowledge by joining this month's Ask A Guru Live: PROCURE TO PAY. RSVP on this event now!
