Skip to main content

Delete result from comment

Deletes task result, created from a comment

Function DeleteResultFromComment(Val URL, Val CommentID, Val Token = "") Export

ParameterCLI optionTypeRequiredDescription
URL--urlStringURL of webhook or a Bitrix24 domain, when token used
CommentID--commentNumber, StringCommentID
Token--tokenStringAccess token, when app auth method used

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


tip

Method at API documentation: tasks.task.result.deleteFromComment


1C:Enterprise/OneScript code example
    URL       = "https://b24-ar17wx.bitrix24.by/rest/1/yg2...";
CommentID = "8646";

Result = OPI_Bitrix24.DeleteResultFromComment(URL, CommentID);

URL = "b24-ar17wx.bitrix24.by";
Token = "2f4e4067006e9f06006b12e400000001000...";
CommentID = "8648";

Result = OPI_Bitrix24.DeleteResultFromComment(URL, CommentID, Token);
    oint bitrix24 DeleteResultFromComment \
--url "b24-ar17wx.bitrix24.by" \
--comment 8736 \
--token "***"
Result
{
"result": null,
"time": {
"start": 1728454795.33004,
"finish": 1728454795.38756,
"duration": 0.0575249195098877,
"processing": 0.0249888896942139,
"date_start": "2024-10-09T09:19:55+03:00",
"date_finish": "2024-10-09T09:19:55+03:00",
"operating_reset_at": 1728455395,
"operating": 0
}
}