Skip to main content

Delete comment

Delete task comment by ID

Function DeleteTaskComment(Val URL, Val TaskID, Val CommentID, Val Token = "") Export

ParameterCLI optionTypeRequiredDescription
URL--urlStringURL of webhook or a Bitrix24 domain, when token used
TaskID--taskNumber, StringTask ID
CommentID--commentNumber, StringID of comment to remove
Token--tokenStringAccess token, when app auth method used

Returns: Map Of KeyAndValue - serialized JSON of answer from Bitrix24 API


tip

Method at API documentation: task.commentitem.delete


1C:Enterprise/OneScript code example
    URL       = "https://b24-ar17wx.bitrix24.by/rest/1/1o2...";
TaskID = "2694";
CommentID = "6618";

Result = OPI_Bitrix24.DeleteTaskComment(URL, TaskID, CommentID);

URL = "b24-ar17wx.bitrix24.by";
Token = "35c31667006e9f06006b12e400000001000...";
CommentID = "6620";

Result = OPI_Bitrix24.DeleteTaskComment(URL, TaskID, CommentID, Token);
    oint bitrix24 DeleteTaskComment \
--url "b24-ar17wx.bitrix24.by" \
--task "2930" \
--comment 7138 \
--token "***"
Result
{
"result": true,
"time": {
"start": 1728454796.03849,
"finish": 1728454796.17589,
"duration": 0.137403964996338,
"processing": 0.113073110580444,
"date_start": "2024-10-09T09:19:56+03:00",
"date_finish": "2024-10-09T09:19:56+03:00",
"operating_reset_at": 1728455396,
"operating": 0.113054990768433
}
}