Get channel list
Gets a list of available channels
Function GetChannelList(Val Token, Val ExcludeArchived = False, Val Cursor = "") Export
| Parameter | CLI option | Type | Required | Description | 
|---|---|---|---|---|
| Token | --token | String | ✔ | Bot token | 
| ExcludeArchived | --notarchived | Boolean | ✖ | Indicator of excluding archived channels | 
| Cursor | --cursor | String | ✖ | Pointer from the previous request, if the result rows > 100 | 
Returns: Map Of KeyAndValue - serialized JSON response from Slack
1C:Enterprise/OneScript code example
    Token = "xoxb-6965308400114-696804637...";
    Result = OPI_Slack.GetChannelList(Token);
- Bash
- CMD/Bat
    oint slack GetChannelList \
     --token "***"
    oint slack GetChannelList ^
     --token "***"
Result
{
 "ok": true,
 "channels": [
  {
   "id": "C06UD92DF1Q",
   "created": 1713202497,
   "creator": "U06UABH3APP",
   "is_org_shared": false,
   "is_im": false,
   "context_team_id": "T06UD92BS3C",
   "updated": 1724394518358,
   "name": "general",
   "name_normalized": "general",
   "is_channel": true,
   "is_group": false,
   "is_mpim": false,
   "is_private": false,
   "is_archived": false,
   "is_general": true,
   "is_shared": false,
   "is_ext_shared": false,
   "unlinked": 0,
   "is_pending_ext_shared": false,
   "pending_shared": [],
   "parent_conversation": null,
   "purpose": {
    "value": "This is the one channel that will always include everyone. It’s a great spot for announcements and team-wide conversations.",
    "creator": "U06UABH3APP",
    "last_set": 1713202497
   },
   "topic": {
    "value": "",
    "creator": "",
    "last_set": 0
   },
   "shared_team_ids": [
    "T06UD92BS3C"
   ],
   "pending_connected_team_ids": [],
   "is_member": false,
   "num_members": 1,
   "properties": {
    "use_case": "welcome"
   },
   "previous_names": []
  },
  {
   "id": "C06UFNUTKUL",
   "created": 1713202541,
   "creator": "U06UABH3APP",
   "is_org_shared": false,
   "is_im": false,
   "context_team_id": "T06UD92BS3C",
   "updated": 1724394515808,
   "name": "slack-api-librarry",
   "name_normalized": "slack-api-librarry",
   "is_channel": true,
   "is_group": false,
   "is_mpim": false,
   "is_private": false,
   "is_archived": false,
   "is_general": false,
   "is_shared": false,
   "is_ext_shared": false,
   "unlinked": 0,
   "is_pending_ext_shared": false,
   "pending_shared": [],
   "parent_conversation": null,
   "purpose": {
    "value": "This channel is for everything #slack-api-librarry. Hold meetings, share docs, and make decisions together with your team.",
    "creator": "U06UABH3APP",
    "last_set": 1713202541
   },
   "topic": {
    "value": "",
    "creator": "",
    "last_set": 0
   },
   "shared_team_ids": [
    "T06UD92BS3C"
   ],
   "pending_connected_team_ids": [],
   "is_member": true,
   "num_members": 2,
   "properties": {
    "tabs": [
     {
      "id": "files",
      "label": "",
      "type": "files"
     }
    ],
    "tabz": [
     {
      "type": "files"
     }
    ],
    "use_case": "project"
   },
   "previous_names": []
  },
  {
   "id": "C06UW6XHU5V",
   "created": 1713701752,
   "creator": "U06UG1CAYH2",
   "is_org_shared": false,
   "is_im": false,
   "context_team_id": "T06UD92BS3C",
   "updated": 1724394515915,
   "name": "testconvd9226ab3-0341-4abb-97c4-a185b7ace9e8",
   "name_normalized": "testconvd9226ab3-0341-4abb-97c4-a185b7ace9e8",
   "is_channel": true,
   "is_group": false,
   "is_mpim": false,
   "is_private": false,
   "is_archived": true,
   "is_general": false,
   "is_shared": false,
   "is_ext_shared": false,
   "unlinked": 0,
   "is_pending_ext_shared": false,
   "pending_shared": [],
   "parent_conversation": null,
   "purpose": {
    "value": "",
    "creator": "",
    "last_set": 0
   },
   "topic": {
    "value": "",
    "creator": "",
    "last_set": 0
   },
   "shared_team_ids": [
    "T06UD92BS3C"
   ],
   "pending_connected_team_ids": [],
   "is_member": false,
   "num_members": 0,
   "previous_names": []
  },
  {
   "id": "C06UWD6523Z",
   "created": 1713712534,
   "creator": "U06UG1CAYH2",
   "is_org_shared": false,
   "is_im": false,
   "context_team_id": "T06UD92BS3C",
   "updated": 1724394515846,
   "name": "testconvdfd146d0-f8c0-4e9f-9df8-56cc13c7e1dc",
...