mirror of
https://github.com/Bayselonarrend/OpenIntegrations.git
synced 2025-03-27 21:48:56 +02:00
83 lines
2.0 KiB
Plaintext
83 lines
2.0 KiB
Plaintext
---
|
|
sidebar_position: 1
|
|
---
|
|
|
|
import Tabs from '@theme/Tabs';
|
|
import TabItem from '@theme/TabItem';
|
|
|
|
# Get comments
|
|
Gets the list of comments for a record in the table
|
|
|
|
|
|
|
|
`Function GetComments(Val Token, Val Base, Val Table, Val Record, Val Indent = "") Export`
|
|
|
|
| Parameter | CLI option | Type | Required | Description |
|
|
|-|-|-|-|-|
|
|
| Token | --token | String | ✔ | Token |
|
|
| Base | --base | String | ✔ | Database identifier |
|
|
| Table | --table | String | ✔ | Table identifier |
|
|
| Record | --record | String | ✔ | Record identifier in the table |
|
|
| Indent | --offset | String | ✖ | Next page identifier of data from the previous request |
|
|
|
|
|
|
Returns: Map Of KeyAndValue - serialized JSON response from Airtable
|
|
|
|
<br/>
|
|
|
|
|
|
|
|
|
|
```bsl title="1C:Enterprise/OneScript code example"
|
|
Token = "patNn4BXW66Yx3pdj.5b93c53cab554a8387de02d...";
|
|
Base = "applgRe17fRzFfVPo";
|
|
Table = "tblnXnQ9P8AcCUO0I";
|
|
Record = "reccmTUyfuQJ1u5N8";
|
|
|
|
Result = OPI_Airtable.GetComments(Token, Base, Table, Record);
|
|
```
|
|
|
|
|
|
<Tabs>
|
|
|
|
<TabItem value="bash" label="Bash" default>
|
|
```bash
|
|
oint airtable GetComments \
|
|
--token "***" \
|
|
--base "app1LBiN2ZxXj0nD6" \
|
|
--table "tblBBSnQba6ur7nrW" \
|
|
--record "rech9Q2R3K1aVfy6F"
|
|
```
|
|
</TabItem>
|
|
|
|
<TabItem value="bat" label="CMD/Bat" default>
|
|
```batch
|
|
oint airtable GetComments ^
|
|
--token "***" ^
|
|
--base "app1LBiN2ZxXj0nD6" ^
|
|
--table "tblBBSnQba6ur7nrW" ^
|
|
--record "rech9Q2R3K1aVfy6F"
|
|
```
|
|
</TabItem>
|
|
</Tabs>
|
|
|
|
|
|
```json title="Result"
|
|
{
|
|
"comments": [
|
|
{
|
|
"id": "comwNg41PXtfEa4kj",
|
|
"author": {
|
|
"id": "usrFlaAHlTfYWAbVW",
|
|
"email": "bayselonarrend@gmail.com",
|
|
"name": "Антон Титовец"
|
|
},
|
|
"text": "Test comment (change.)",
|
|
"createdTime": "2024-10-09T06:15:49Z",
|
|
"lastUpdatedTime": "2024-10-09T06:15:50Z"
|
|
}
|
|
],
|
|
"offset": null
|
|
}
|
|
```
|