1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-11-25 22:12:29 +02:00
Files
OpenIntegrations/docs/en/md/Google_Drive/File-and-directory-management/Get-file-description.mdx
Vitaly the Alpaca (bot) d71db5d6e3 Main build (Jenkins)
2025-05-05 10:07:34 +03:00

60 lines
1.4 KiB
Plaintext
Vendored

---
sidebar_position: 10
description: "Get file description" and other functions to work with Google Drive in the Open Integration Package, a free open-source integration library for 1C:Enterprise 8, OneScript and CLI
keywords: [1C, 1С, 1С:Enterprise, 1С:Enterprise 8.3, API, Integration, Services, Exchange, OneScript, CLI, Google Drive]
---
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
# Get file description
Gets a blank description template for uploading a file
`Function GetFileDescription(Val Clear = False) Export`
| Parameter | CLI option | Type | Required | Description |
|-|-|-|-|-|
| Clear | --empty | Boolean | ✖ | True > structure with empty valuse, False > field descriptions at values |
Returns: Map Of KeyAndValue - File description
<br/>
```bsl title="1C:Enterprise/OneScript code example"
Result = OPI_GoogleDrive.GetFileDescription();
```
<Tabs>
<TabItem value="bash" label="Bash" default>
```bash
oint gdrive GetFileDescription \
--empty false
```
</TabItem>
<TabItem value="bat" label="CMD/Bat" default>
```batch
oint gdrive GetFileDescription ^
--empty false
```
</TabItem>
</Tabs>
```json title="Result"
{
"MIME": "image/jpeg",
"Name": "New file.jpg",
"Description": "This is a new file",
"Parent": "root"
}
```