API Reference > imodeljs-frontend > IModelConnection > IModelConnection.CodeSpecs > getById getById Method Look up a CodeSpec by Id. getById(codeSpecId: Id64String): Promise<CodeSpec> throws IModelError if the Id is invalid or if no CodeSpec with that Id could be found. Parameter Type Description codeSpecId Id64String The Id of the CodeSpec to load Returns - Promise<CodeSpec> The CodeSpec with the specified Id Defined in core/frontend/src/IModelConnection.ts Line 844 Last Updated: 13 June, 2024