API Reference > imodeljs-backend > iModels > IModelImporter > onInsertRelationship onInsertRelationship MethodProtected Create a new Relationship from the specified RelationshipProps and insert it into the target iModel. onInsertRelationship(relationshipProps: RelationshipProps): string note A subclass may override this method to customize insert behavior but should call super.onInsertRelationship. Parameter Type Description relationshipProps RelationshipProps Returns - string The instance Id of the newly inserted relationship. Defined in core/backend/src/IModelImporter.ts Line 347 Last Updated: 12 June, 2024