API Reference > ecSchema-Metadata > Metadata > Schema > createConstant createConstant MethodProtected Creates a Constant with the provided name in this schema. createConstant(name: string): Promise<Constant> Parameter Type Description name string Returns - Promise<Constant> Defined in core/ecschema-metadata/src/Metadata/Schema.ts Line 259 Last Updated: 12 June, 2024