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
Creating child custom records on create of a Parent custom record with nlobjSublist
Hello,
I have a custom record and other custom child records that link to this parent custom record. When creating the parent record, I want users to be able to fill in sublist values that I can then use to create the children records in an after submit script.
The problem I'm running into is this:
Since I created a custom sublist (form.addSublist) on the custom record, I can't use these values in a before submit script to create the child records because I don't yet have the ID of the parent record to link to them. Likewise, I don't have the custom sublist values in an after submit script (when I would have the parent record ID) because they are only stored in the custom sublist until they are saved as individual records.