Discussions
Join us for complimentary one-day events around the world and step into a future fueled by AI and limitless potential. Explore new breakthroughs, sharpen your skills, and connect with experts who are shaping what’s next. Experience bold keynotes, interactive learning, and connections that span the global NetSuite community. Discover what's next at SuiteConnect Tour 2026.
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 about Advanced Accounting. RSVP on this event now!
