This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$_SERVER["DOCUMENT_ROOT"] = realpath(dirname(__FILE__)."/../.."); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
global $APPLICATION; | |
$arFields['RESULT_MESSAGE'] = 'Задайте контакту оригинальное имя и фамилию'; | |
$GLOBALS['APPLICATION']->throwException('error'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<? | |
// Обновление списка компаний для актуализации настроек прав доступа | |
include_once(__DIR__ . "/../../.config.php"); | |
define("NO_KEEP_STATISTIC", true); | |
define("NOT_CHECK_PERMISSIONS", true); | |
define('CHK_EVENT', true); | |
ini_set('memory_limit', '-1'); | |
require($_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/include/prolog_before.php"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Array | |
( | |
[NAME] => кенгкег | |
[SECOND_NAME] => лопорл | |
[LAST_NAME] => 45674567 | |
[TYPE_ID] => CLIENT | |
[SOURCE_ID] => CALL | |
[COMMENTS] => | |
[OPENED] => Y | |
[EXPORT] => N |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Array | |
( | |
[TITLE] => 80000000000 - Исходящий звонок | |
[OPENED] => Y | |
[SOURCE_ID] => CALL | |
[SOURCE_DESCRIPTION] => Звонок поступил на номер: Приложение: Телфин.Офис. | |
[FM] => Array | |
( | |
[PHONE] => Array | |
( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$request = \Bitrix\Main\Context::getCurrent()->getRequest(); | |
if ($request->isAjaxRequest()) { | |
d('ajax'); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<? | |
require($_SERVER["DOCUMENT_ROOT"] . "/bitrix/header.php"); | |
global $USER; | |
\Bitrix\Main\Loader::includeModule('crm'); | |
require_once($_SERVER['DOCUMENT_ROOT'].BX_ROOT.'/modules/main/classes/general/csv_data.php'); | |
$csvFile = new CCSVData(); | |
$csvFile->LoadFile("deals CSV.csv"); | |
$csvFile->SetFieldsType('R'); | |
$csvFile->SetFirstHeader(true); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// получить текущий бизнес-процесс | |
$rootActivity = $this->GetRootActivity(); | |
// получить значение переменной бизнес-процесса {=Variable:kurs_usd} | |
$kursUSD = $rootActivity->GetVariable("kurs_usd"); | |
$rootActivity->GetConstant($fieldName); | |
// установка значения параметра бизнес-процесса {=Template:integrator_USD} | |
$rootActivity->integrator_USD = $integrator; | |
$rootActivity->SetVariable("LOG", $arLog); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var originalBxOnCustomEvent = BX.onCustomEvent; | |
BX.onCustomEvent = function (eventObject, eventName, eventParams, secureParams) { | |
var logData = { | |
eventObject: eventObject, | |
eventName: eventName, | |
eventParams: eventParams, | |
secureParams: secureParams | |
}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function GetIBlockIDByCode($code, $type = '') | |
{ | |
CModule::IncludeModule("iblock"); | |
$arrFilter = array( | |
'ACTIVE' => 'Y', | |
'CODE' => $code, | |
'SITE_ID' => "s1", | |
); |