FolderID = FunctionParameters["Bitrix24_HookSubFolderID"]; FileID = FunctionParameters["Bitrix24_FileID"]; URL = FunctionParameters["Bitrix24_URL"]; Result = OPI_Bitrix24.MoveFileToFolder(URL, FileID, FolderID); FolderID = FunctionParameters["Bitrix24_SubFolderID"]; URL = FunctionParameters["Bitrix24_Domain"]; Token = FunctionParameters["Bitrix24_Token"]; Result = OPI_Bitrix24.MoveFileToFolder(URL, FileID, FolderID, Token); Check_BitrixObject(Result);