1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-11-29 22:27:42 +02:00
Files
OpenIntegrations/docs/en/md/Airtable/Table-management/Modify-table.mdx
Vitaly the Alpaca (bot) 626ac1c614 Main build (Jenkins)
2025-10-27 16:23:35 +03:00

142 lines
3.2 KiB
Plaintext
Vendored

---
sidebar_position: 2
description: Modify table and other functions to work with Airtable 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, Airtable]
---
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
# Modify table
Changes the name and/or description of the base
`Function ModifyTable(Val Token, Val Base, Val Table, Val Name = "", Val Description = "") Export`
| Parameter | CLI option | Type | Required | Description |
|-|-|-|-|-|
| Token | --token | String | ✔ | Token |
| Base | --base | String | ✔ | Base identifier |
| Table | --table | String | ✔ | Table identifier |
| Name | --title | String | ✖ | New name |
| Description | --description | String | ✖ | New description |
Returns: Map Of KeyAndValue - serialized JSON response from Airtable
<br/>
```bsl title="1C:Enterprise/OneScript code example"
Token = "patNn4BXW66Yx3pdj.5b93c53cab554a8387de02d...";
Base = "appBEgfZnOQXjj4V4";
Table = "tbl7VjtIddrXmaoTW";
Name = "Test table 2 (change.)";
Description = "New table (change.)";
Result = OPI_Airtable.ModifyTable(Token, Base, Table, Name, Description);
```
<Tabs>
<TabItem value="bash" label="Bash" default>
```bash
oint airtable ModifyTable \
--token "***" \
--base "apppuWpft4xNlV34k" \
--table "tblbmPGHdRw8sWAio" \
--title "Test table 2 (change.)" \
--description "New table (change.)"
```
</TabItem>
<TabItem value="bat" label="CMD/Bat" default>
```batch
oint airtable ModifyTable ^
--token "***" ^
--base "apppuWpft4xNlV34k" ^
--table "tblbmPGHdRw8sWAio" ^
--title "Test table 2 (change.)" ^
--description "New table (change.)"
```
</TabItem>
</Tabs>
```json title="Result"
{
"id": "tbl7N6PyIZTu3lgJ2",
"name": "Test table 2 (change.)",
"description": "New table (change.)",
"primaryFieldId": "fldVxNUmRlTBIhR6V",
"fields": [
{
"id": "fldVxNUmRlTBIhR6V",
"name": "Number",
"type": "number",
"options": {
"precision": 0
}
},
{
"id": "fldgwEou0DEmHXh10",
"name": "String",
"type": "richText"
},
{
"id": "fld3cywkfcsbnWQrF",
"name": "Attachment",
"type": "multipleAttachments",
"options": {
"isReversed": false
}
},
{
"id": "fldcbb7SAhMZPg8YY",
"name": "Checkbox",
"type": "checkbox",
"options": {
"icon": "check",
"color": "yellowBright"
}
},
{
"id": "fldLHMhSbMf0TqICc",
"name": "Date",
"type": "date",
"options": {
"dateFormat": {
"name": "iso",
"format": "YYYY-MM-DD"
}
}
},
{
"id": "fldQ9i1KQYcHoHPIW",
"name": "Phone",
"type": "phoneNumber"
},
{
"id": "fldGeVP6ru9EgvBgs",
"name": "Email",
"type": "email"
},
{
"id": "fld9I2bDCAPFJ0IiW",
"name": "Link",
"type": "url"
}
],
"views": [
{
"id": "viwDPQ6e8FgMWIdps",
"name": "Grid view",
"type": "grid"
}
]
}
```