insert MethodStatic
insert(txn, parentSubjectId, name) @beta
Insert a GroupInformationPartition and a GroupModel that breaks it down using an explicit transaction.
insert(txn: EditTxn, parentSubjectId: string, name: string): string
@returns The Id of the newly inserted GroupModel.
@throws IModelError if there is an insert problem.
| Parameter | Type | Description |
|---|---|---|
| txn | EditTxn | The EditTxn used to perform inserts. |
| parentSubjectId | string | The GroupInformationPartition will be inserted as a child of this Subject element. |
| name | string | The name of the GroupInformationPartition that the new GroupModel will break down. |
Returns - string
The Id of the newly inserted GroupModel.
insert(iModelDb, parentSubjectId, name)
Deprecated in 5.1.9 - will not be removed until after 2027-05-04. Use GroupModel.insert(txn, ...) instead, within an explicit EditTxn scope (or via withEditTxn). See EditTxn documentation for migration help.
insert(iModelDb: IModelDb, parentSubjectId: string, name: string): string
| Parameter | Type | Description |
|---|---|---|
| iModelDb | IModelDb | |
| parentSubjectId | string | |
| name | string |
Returns - string
Defined in
Last Updated: 06 May, 2026
Found something wrong, missing, or unclear on this page? Raise an issue in our repo.