API Reference > imodeljs-backend > Elements > Element > onInsert onInsert MethodProtectedStatic Beta Called before a new Element is inserted. onInsert(props: ElementProps, iModel: IModelDb): void throws IModelError if there is a problem note Any class that overrides this method must call super. Parameter Type Description props ElementProps iModel IModelDb Returns - void Defined in core/backend/src/Element.ts Line 115 Last Updated: 13 June, 2024