Get external file
Gets information about the external file
Function GetExternalFile(Val Token, Val FileID) Export
Parameter | CLI option | Type | Required | Description |
---|---|---|---|---|
Token | --token | String | ✔ | Bot token |
FileID | --fileid | String | ✔ | File identifier |
Returns: Map Of KeyAndValue - serialized JSON response from Slack
1C:Enterprise/OneScript code example
Token = "xoxb-6965308400114-696804637...";
FileID = "F09F59A55B8";
Result = OPI_Slack.GetExternalFile(Token, FileID);
- Bash
- CMD/Bat
oint slack GetExternalFile \
--token "***" \
--fileid "F09FA0ZF6BX"
oint slack GetExternalFile ^
--token "***" ^
--fileid "F09FA0ZF6BX"
Result
{
"ok": true,
"file": {
"id": "F09FA0ZF6BX",
"created": 1757975856,
"timestamp": 1757975856,
"name": "NewFile",
"title": "NewFile",
"mimetype": "application/vnd.slack-remote",
"filetype": "remote",
"pretty_type": "Remote",
"user": "U06UG1CAYH2",
"user_team": "T06UD92BS3C",
"editable": false,
"size": 0,
"mode": "external",
"is_external": true,
"external_type": "app",
"is_public": false,
"public_url_shared": false,
"display_as_bot": false,
"username": "",
"external_id": "53e39d5f-5495-4184-a34e-daa710c91255",
"external_url": "https://hut.openintegrations.dev/test_data/document.docx",
"url_private": "https://hut.openintegrations.dev/test_data/document.docx",
"media_display_type": "unknown",
"permalink": "https://openintegrationsgroup.slack.com/files/U06UG1CAYH2/F09FA0ZF6BX/newfile",
"comments_count": 0,
"is_starred": false,
"shares": {},
"channels": [],
"groups": [],
"ims": [],
"has_more_shares": false,
"app_id": "A06TYNH45RV",
"has_rich_preview": false,
"file_access": "visible"
}
}