Is await available in suitescript 2.1 or not?

I know about promises, but promises do not make the functions not return until the promise returns something.

Rookie Asked on January 22, 2025 in SuiteCloud.
Add Comment
1 Answer(s)

I played around a little while back and didn’t find any good use cases.

This document outlines the support:
https://docs.oracle.com/en/cloud/saas/netsuite/ns-online-help/section_4387812940.html#subsect_0108024135

However, I don’t know what it means to say that “async, await, and promise” are only supported in the N/https module, etc.

What I really want to know is can I use it in a client script, user event script, etc.

So far, I can only see the value in running some UI operations asynchronously, but even then I don’t think I was able to do it with await.

Advanced Answered on January 22, 2025.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.
  • This site made possible by our sponsors:   Tipalti   Celigo   SuiteMigration   Become a Sponsor