URL = FunctionParameters["Bitrix24_URL"]; FolderID = FunctionParameters["Bitrix24_HookFolderID"]; Result = OPI_Bitrix24.DeleteFolder(URL, FolderID); OPI_TestDataRetrieval.WriteLog(Result, "DeleteFolder (wh)", "Bitrix24"); URL = FunctionParameters["Bitrix24_Domain"]; Token = FunctionParameters["Bitrix24_Token"]; FolderID = FunctionParameters["Bitrix24_FolderID"]; Result = OPI_Bitrix24.DeleteFolder(URL, FolderID, Token);