I have a user event script 1 which is triggered on the after submit event of record A. It creates many record B's. This script is working correctly. We added a user event script 2 on record B which creates many record C's. The after submit event script 2 on record B works correctly when record B is manually saved. The problem is that the after submit on record B is not being triggered when the script 1 saves the record B in the script.
The obvious solution is to move the script 2 logic into script 1 however the metering of the script prevents this because script 1 uses up to 980 units.
record A has a sublist containing Record B which has a sublist containing Record C.
Record A has an user event script on an after submit event which creates record B
Record B has an user even script on an after submit event which creates record CO
The script associated with record A uses nlapiSubmitRecord to Create and save Record B
The documentation states
User Event scripts always execute when nape(Create|Load|Transform|Copy|Submit)Record
calls are made.
The script does not seem to be firing on the save of Record B in the script associated with Record