--- alias: user-guide-business-workflow-task-table-rows-write-pre render_macros: false description: "Starts a workflow before Smart Table or Generic Table rows are written." --- # Before Table Rows Write Starts a workflow before **Smart Table** or **Generic Table** rows are written. ![Screenshot of a Business Workflow using If and Throw error to check pending table rows before writing.](images/business-workflow-task-table-rows-write-pre.png) ## Event Context The event provides `Table`, `TableName`, `TableType`, `Operation`, `Rows`, `RemovedRows`, `OperationContext` to tasks in its branch. Select these values in the value editor when configuring child tasks. ??? example "Before Table Rows Write" Check pending **Smart Table** or **Generic Table** rows and reject an invalid value before the write. ## Behavior The handler runs inside the operation's transaction. An error in the handler can cancel or roll back the operation. An After event runs after the operation boundary, while the transaction is still active.