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): Id64String note A subclass may override this method to customize insert behavior but should call super.onInsertRelationship. Parameter Type Description relationshipProps RelationshipProps Returns - Id64String The instance Id of the newly inserted relationship. Defined in core/backend/src/IModelImporter.ts Line 338 Last Updated: 13 June, 2024