Skip to main content

Create comment

Creates a comment for a record in the table

Function CreateComment(Val Token, Val Base, Val Table, Val Record, Val Text) Export

ParameterCLI optionTypeDescription
Token--tokenStringToken
Base--baseStringDatabase identifier
Table--tableStringTable identifier
Record--recordStringRecord identifier in the table
Text--textStringComment text

Returns: Map Of KeyAndValue - serialized JSON response from Airtable


Code example
  
Base = "apptm8Xqo7TwMaipQ";
Table = "tbl9G4jVoTJpxYwSY";
Record = "recV6DxeLQMBNJrUk";
Text = "TestComment";

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

Result
{
"id": "comL1oGEDJvIQlMs1",
"author": {
"id": "usrFlaAHlTfYWAbVW",
"email": "bayselonarrend@gmail.com",
"name": "Anton Titovets"
},
"text": "TestComment",
"createdTime": "2024-05-10T19:39:51.561Z",
"lastUpdatedTime": null
}