Advertisement
Trigub_Ilia

Поиск лида по номеру телефона

Feb 8th, 2018
234
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.40 KB | None | 0 0
  1. $fildLias = CCrmFieldMulti::GetList(array(),array('ENTITY_ID' => 'LEAD', 'VALUE' => $arField["VALUE"]));
  2.     if (intval($fildLias->SelectedRowsCount())>0){
  3.         while ($row = $fildLias->GetNext()){
  4.             if($arFields["ID"] == $row["ELEMENT_ID"]) continue;
  5.             //$assigned = $row["ASSIGNED_BY"];
  6.             $responsible = 1;
  7.             $leadID = $row["ELEMENT_ID"];
  8.             break;
  9.     }
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement