R
R
Roman Govorov2019-11-15 20:40:57
Bitrix24
Roman Govorov, 2019-11-15 20:40:57

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

1 answer(s)
R
Roman Govorov, 2019-11-21
@RGameShow

/*
* Добавляем к лиду комментарий
*/

$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 question

Ask a Question

731 491 924 answers to any question