Discussions
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.