Skip to main content

Delete comment

Deletes a comment for a table record

Function DeleteComment(Val Token, Val Base, Val Table, Val Record, Val Comment) Export

ParameterCLI optionTypeDescription
Token--tokenStringToken
Base--baseStringDatabase identifier
Table--tableStringTable identifier
Record--recordStringRecord identifier in the table
Comment--commentStringComment identifier

Returns: Map Of KeyAndValue - serialized JSON response from Airtable


Code example
  
Base = "apptm8Xqo7TwMaipQ";
Table = "tbl9G4jVoTJpxYwSY";
Record = "recV6DxeLQMBNJrUk";
Comment = "comL1oGEDJvIQlMs1";

Response = OPI_Airtable.DeleteComment(Token, Base, Table, Record, Comment); //Map
Response = OPI_Tools.JSONString(Response); //JSON string
CLI command example
    
oint airtable DeleteComment --token %token% --base "apptm8Xqo7TwMaipQ" --table "tbl9G4jVoTJpxYwSY" --record "recV6DxeLQMBNJrUk" --comment "comL1oGEDJvIQlMs1"

Result
{
"id": "comL1oGEDJvIQlMs1",
"deleted": true
}