API Reference > iModeljs-backend > Models > Model > onInsert onInsert MethodProtectedStatic Beta Called before a new Model is inserted. onInsert(arg: OnModelPropsArg): void note throw an exception to disallow the insert note If you override this method, you must call super. note this is the class of the Model to be inserted Parameter Type Description arg OnModelPropsArg Returns - void Defined in core/backend/src/Model.ts Line 142 Last Updated: 12 June, 2024