1# @ohos.customization.customConfig (Custom Configurations)
2
3This module provides APIs for applications to obtain custom configurations, such as channel IDs.
4
5>  **NOTE**
6>
7>  The initial APIs of this module are supported since API version 12. Newly added APIs will be marked with a superscript to indicate their earliest API version.
8
9## Modules to Import
10
11```ts
12import { customConfig } from '@kit.BasicServicesKit';
13```
14
15## customConfig.getChannelId
16
17getChannelId(): string
18
19Obtains the channel ID based on the bundle name of an application.
20
21**System capability**: SystemCapability.Customization.CustomConfig
22
23**Return value**
24
25|  Type |  Description |
26| ------ | ----- |
27| string | Channel ID|
28
29**Example**
30
31  ```ts
32    let channelId: string = customConfig.getChannelId();
33    console.log('app channelId is ' + channelId);
34  ```
35