API Reference > imodeljs-backend > Elements > InformationPartitionElement > createCode createCode MethodStatic Create a code that can be used for any subclass of InformationPartitionElement. createCode(iModel: IModelDb, parentSubjectId: CodeScopeProps, codeValue: string): Code Parameter Type Description iModel IModelDb parentSubjectId CodeScopeProps The Id of the parent Subject that provides the scope for names of its child InformationPartitionElements. codeValue string The InformationPartitionElement name Returns - Code Defined in core/backend/src/Element.ts Line 920 Last Updated: 13 June, 2024