1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-04-17 12:06:34 +02:00

83 lines
2.0 KiB
Plaintext
Raw Normal View History

2024-10-15 10:50:56 +03:00
---
2024-10-15 10:16:04 +03:00
sidebar_position: 1
---
2024-10-15 10:50:56 +03:00
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
2024-10-15 10:16:04 +03:00
# 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`
2024-10-15 15:15:47 +03:00
| 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 |
2024-10-15 10:16:04 +03:00
Returns: Map Of KeyAndValue - serialized JSON response from Airtable
<br/>
2024-10-15 21:15:56 +03:00
```bsl title="1C:Enterprise/OneScript code example"
2024-10-15 10:16:04 +03:00
Token = "patNn4BXW66Yx3pdj.5b93c53cab554a8387de02d...";
2024-12-02 18:50:41 +03:00
Base = "appg0JsjPu7GsCRR2";
Table = "tbltNIWr0Gr9ulL5x";
Record = "recKVt5FKg0WTa5ik";
2024-10-15 10:16:04 +03:00
Result = OPI_Airtable.GetComments(Token, Base, Table, Record);
```
2024-10-20 22:36:03 +03:00
<Tabs>
<TabItem value="bash" label="Bash" default>
```bash
oint airtable GetComments \
2024-10-22 08:59:24 +03:00
--token "***" \
2024-12-03 08:47:45 +03:00
--base "appWrkmjk2YoKeMPz" \
--table "tbl7ssDbyL4cdBb6Z" \
--record "recd6R9x0SLYWcMhN"
2024-10-20 22:36:03 +03:00
```
</TabItem>
<TabItem value="bat" label="CMD/Bat" default>
```batch
oint airtable GetComments ^
2024-10-22 08:59:24 +03:00
--token "***" ^
2024-12-03 08:47:45 +03:00
--base "appWrkmjk2YoKeMPz" ^
--table "tbl7ssDbyL4cdBb6Z" ^
--record "recd6R9x0SLYWcMhN"
2024-10-20 22:36:03 +03:00
```
</TabItem>
</Tabs>
2024-10-15 10:16:04 +03:00
```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
}
```