Answer the question
In order to leave comments, you need to log in
How to put a comment or a “call in a month” timer on an incoming lead?
A person sends an application from the site, it arrives at bitrix24, we, in turn, send him a link to demo access to the product.
In a month, we need to call the client and sell a paid one or extend a free plan.
How to hang an event or a timer with a backlight “call in a month” on an incoming lead?
Answer the question
In order to leave comments, you need to log in
/*
* Добавляем к лиду комментарий
*/
$comment_timeline = <<<EOD
<b>Правила обработки заявки</b>
<ol>
<li>Позвонить, помочь зарегистрировать клиента</li>
<li>Перенести лид на 2 недели</li>
<li>Через 2 недели узнать как клиенту сервис</li>
<li>Связаться с клиентом за неделю до окончания ТД</li>
<li>ПРОДАТЬ ЭЛЬБУ</li>
</ol>
<b>P.S. номер тех.поддержки: 8 (800) 800 80 80</b>
EOD;
$queryUrl = 'https://xxxx.bitrix24.ru/rest/x/xxxxxxxxxxxxx/crm.timeline.comment.add.json';
$queryData = http_build_query(array(
'fields' => Array(
"ENTITY_ID" => $leadID,
"ENTITY_TYPE" => "lead",
"COMMENT" => $comment_timeline
),
));
$curl = curl_init();
$curl_array = [CURLOPT_SSL_VERIFYPEER => 0, CURLOPT_POST => 1, CURLOPT_HEADER => 0, CURLOPT_RETURNTRANSFER => 1, CURLOPT_URL => $queryUrl, CURLOPT_POSTFIELDS => $queryData];
curl_setopt_array($curl, $curl_array);
$result = curl_exec($curl);
curl_close($curl);
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question