Discussions
Read on for the latest updates including:
• Agenda Builder launch
• SuiteWorld On Air registration
• New NetSuite Prompt Studio Contest
• And more!
Check out this thread to learn more!
Issue with getRecordType during aftersubmit
I just noticed an interesting event. Here is the scenario:
1. Server-side user-event script record set to run when lead record is submitted
2. Open a lead record and set its status to 'Prospect' and save.
3. Lead record server-side script runs (which is interesting because beforeSubmit it is still a lead but afterSubmit it is a prospect...)
[LIST=a]
[*]Before Submit runs appropriately (because still a lead before submit)
[*]After Submit also runs under the lead record (should it since it is now a prospect???). Look what happens:
[LIST=i]
[*]Load the current record using getNewRecord (read only). Returns an object variable called recordObj.