Answer the question
In order to leave comments, you need to log in
Why is the wrong file attached to the task in Bitrix24?
Uploading a file:
$file = CFile::MakeFileArray(
$link,
false,
false,
''
);
$fileSave = CFile::SaveFile(
$file,
'/telegram',
false,
false
);
$FILE_ID = $fileSave;
CModule::IncludeModule('tasks');
$oTaskItem = new CTaskItem(272794, 1433);
$rs = $oTaskItem->Update(
array(
"UF_TASK_WEBDAV_FILES" => array("$FILE_ID")
),
array(
"USER_ID" => 1433,
"CHECK_RIGHTS_ON_FILES" => false
)
);
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question