API Reference > iModeljs-backend > Models > Model > onInsert onInsert MethodProtectedStatic Beta Called before a new model is inserted. onInsert(props: ModelProps, iModel: IModelDb): void throws IModelError if there is a problem Parameter Type Description props ModelProps iModel IModelDb Returns - void Defined in core/backend/src/Model.ts Line 90 Last Updated: 13 June, 2024