You've already forked OpenIntegrations
mirror of
https://github.com/Bayselonarrend/OpenIntegrations.git
synced 2025-12-05 22:53:35 +02:00
70 lines
2.0 KiB
Plaintext
Vendored
70 lines
2.0 KiB
Plaintext
Vendored
---
|
|
sidebar_position: 3
|
|
description: Change spreadsheet name and other functions to work with Google Sheets 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 Sheets]
|
|
---
|
|
|
|
import Tabs from '@theme/Tabs';
|
|
import TabItem from '@theme/TabItem';
|
|
|
|
# Change spreadsheet name
|
|
Changes the name of the existing spreadsheet
|
|
|
|
|
|
|
|
`Function EditSpreadsheetTitle(Val Token, Val Spreadsheet, Val Name) Export`
|
|
|
|
| Parameter | CLI option | Type | Required | Description |
|
|
|-|-|-|-|-|
|
|
| Token | --token | String | ✔ | Token |
|
|
| Spreadsheet | --spreadsheet | String | ✔ | SpreadsheetID |
|
|
| Name | --title | String | ✔ | New name |
|
|
|
|
|
|
Returns: Map Of KeyAndValue - serialized JSON response from Google
|
|
|
|
<br/>
|
|
|
|
|
|
|
|
|
|
```bsl title="1C:Enterprise/OneScript code example"
|
|
Token = "ya29.a0AW4XtxhtghlL7aK7VhJX0jOgNWau4CUoOEDkQBr4uJEjPidCjKm-4r4l7AoJnODBt7yblowJtvv_3vETd6CulW4V5zxxPx8TTvQAMESj7...";
|
|
Spreadsheet = "15pyer8RapTluc4feiD8_y1P42RVoDG5xBDly6IPC-OE";
|
|
Name = "Test table (changed.)";
|
|
|
|
Result = OPI_GoogleSheets.EditSpreadsheetTitle(Token, Spreadsheet, Name);
|
|
```
|
|
|
|
|
|
<Tabs>
|
|
|
|
<TabItem value="bash" label="Bash" default>
|
|
```bash
|
|
oint gsheets EditSpreadsheetTitle \
|
|
--token "***" \
|
|
--spreadsheet "1oGXEhvP6doUZw06a8nilumExYGjJ9hti1OlRerUngCg" \
|
|
--title "Test table (changed.)"
|
|
```
|
|
</TabItem>
|
|
|
|
<TabItem value="bat" label="CMD/Bat" default>
|
|
```batch
|
|
oint gsheets EditSpreadsheetTitle ^
|
|
--token "***" ^
|
|
--spreadsheet "1oGXEhvP6doUZw06a8nilumExYGjJ9hti1OlRerUngCg" ^
|
|
--title "Test table (changed.)"
|
|
```
|
|
</TabItem>
|
|
</Tabs>
|
|
|
|
|
|
```json title="Result"
|
|
{
|
|
"spreadsheetId": "1psqJkXdtlHOc7Qzr4ficNkFth5dWLl0HdmMDhSTM7ZQ",
|
|
"replies": [
|
|
{}
|
|
]
|
|
}
|
|
```
|