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
NSC | Configure Script to Only Run on Record Creation Using the Script Deployment Record
There are many instances where scripts are only intended to run on specific instances. Some developers may have been used to filtering this out using a conditional record for scriptContext.type. But it can also be done using the Script Deployment Record. To do this:
- Open your Script Deployment record in Edit Mode.
- On the Event Type drop-down, select Create.
- Save.
Note: The Event Type field appears on Suitelet, User Event, and record-level Client script deployment pages only.
Important: Event types specified in the UI take precedence over the types specified in the script file. For example, if the create
Expand your NetSuite knowledge by joining this month's Ask A Guru Live: PROCURE TO PAY. RSVP on this event now!
Refer a Member to the Community | Earn the Answer Accepter Badge | Vote for the contents you'd like to see
