You've already forked OpenIntegrations
mirror of
https://github.com/Bayselonarrend/OpenIntegrations.git
synced 2026-05-22 10:05:29 +02:00
74 lines
1.8 KiB
Plaintext
74 lines
1.8 KiB
Plaintext
---
|
|
sidebar_position: 4
|
|
---
|
|
|
|
import Tabs from '@theme/Tabs';
|
|
import TabItem from '@theme/TabItem';
|
|
|
|
# Delete comment
|
|
Deletes a comment for a table record
|
|
|
|
|
|
|
|
`Function DeleteComment(Val Token, Val Base, Val Table, Val Record, Val Comment) 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 |
|
|
| Comment | --comment | String | ✔ | Comment identifier |
|
|
|
|
|
|
Returns: Map Of KeyAndValue - serialized JSON response from Airtable
|
|
|
|
<br/>
|
|
|
|
|
|
|
|
|
|
```bsl title="1C:Enterprise/OneScript code example"
|
|
Token = "patNn4BXW66Yx3pdj.5b93c53cab554a8387de02d...";
|
|
Base = "appeMvjrOQPJciL7O";
|
|
Table = "tblQdiEo3yKV0e1cj";
|
|
Record = "reclJA9M8WL5gPBg3";
|
|
Comment = "comD945ArYL8Ysdb7";
|
|
|
|
Result = OPI_Airtable.DeleteComment(Token, Base, Table, Record, Comment);
|
|
```
|
|
|
|
|
|
<Tabs>
|
|
|
|
<TabItem value="bash" label="Bash" default>
|
|
```bash
|
|
oint airtable DeleteComment \
|
|
--token "***" \
|
|
--base "apppFgTFJJaJ0Dqt3" \
|
|
--table "tblIgYcH9BNy857xg" \
|
|
--record "rec9AHVfHcpFxAwTi" \
|
|
--comment "com9hDEWe8PbhBWrp"
|
|
```
|
|
</TabItem>
|
|
|
|
<TabItem value="bat" label="CMD/Bat" default>
|
|
```batch
|
|
oint airtable DeleteComment ^
|
|
--token "***" ^
|
|
--base "apppFgTFJJaJ0Dqt3" ^
|
|
--table "tblIgYcH9BNy857xg" ^
|
|
--record "rec9AHVfHcpFxAwTi" ^
|
|
--comment "com9hDEWe8PbhBWrp"
|
|
```
|
|
</TabItem>
|
|
</Tabs>
|
|
|
|
|
|
```json title="Result"
|
|
{
|
|
"id": "comwNg41PXtfEa4kj",
|
|
"deleted": true
|
|
}
|
|
```
|