. 🔍 Applicable Context Script Type: User Event Script Execution Context: beforeSubmit Record Type: Any record with an item sublist (e.g., Sales Order, Invoice) Use Case: Automatically inserting a default item line before the record is submitted const beforeSubmit = (scriptContext) => { try { if (scriptContext.type !== scriptContext.UserEventType.CREATE)… Continue reading Adding a New Line to the Item Sublist in beforeSubmit User Event Script