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.7 KiB
Plaintext
74 lines
1.7 KiB
Plaintext
---
|
|
sidebar_position: 4
|
|
---
|
|
|
|
import Tabs from '@theme/Tabs';
|
|
import TabItem from '@theme/TabItem';
|
|
|
|
# Delete records
|
|
Deletes one or an array of records by identifiers
|
|
|
|
|
|
|
|
`Function DeletePosts(Val Token, Val Base, Val Table, Val Records) Export`
|
|
|
|
| Parameter | CLI option | Type | Required | Description |
|
|
|-|-|-|-|-|
|
|
| Token | --token | String | ✔ | Token |
|
|
| Base | --base | String | ✔ | Database identifier |
|
|
| Table | --table | String | ✔ | Table identifier |
|
|
| Records | --records | String, Array of String | ✔ | Identifier or array of record identifiers |
|
|
|
|
|
|
Returns: Map Of KeyAndValue - serialized JSON response from Airtable
|
|
|
|
<br/>
|
|
|
|
|
|
|
|
|
|
```bsl title="1C:Enterprise/OneScript code example"
|
|
Token = "patNn4BXW66Yx3pdj.5b93c53cab554a8387de02d...";
|
|
Base = "appL0hdxXVnQkbPVh";
|
|
Table = "tblEGswvf7vDCgFHd";
|
|
Record = "recgu8nXPkSN45ubu";
|
|
|
|
Result = OPI_Airtable.DeletePosts(Token, Base, Table, Record);
|
|
```
|
|
|
|
|
|
<Tabs>
|
|
|
|
<TabItem value="bash" label="Bash" default>
|
|
```bash
|
|
oint airtable DeletePosts \
|
|
--token "***" \
|
|
--base "app1BSYtCVlNTKWb8" \
|
|
--table "tblyiMcHBz46if9ZC" \
|
|
--records "recJUtkFAhF2WNcOH"
|
|
```
|
|
</TabItem>
|
|
|
|
<TabItem value="bat" label="CMD/Bat" default>
|
|
```batch
|
|
oint airtable DeletePosts ^
|
|
--token "***" ^
|
|
--base "app1BSYtCVlNTKWb8" ^
|
|
--table "tblyiMcHBz46if9ZC" ^
|
|
--records "recJUtkFAhF2WNcOH"
|
|
```
|
|
</TabItem>
|
|
</Tabs>
|
|
|
|
|
|
```json title="Result"
|
|
{
|
|
"records": [
|
|
{
|
|
"deleted": true,
|
|
"id": "recMPMkPT6RzcSyqt"
|
|
}
|
|
]
|
|
}
|
|
```
|