P
P
Pekky2020-05-22 13:26:30
API
Pekky, 2020-05-22 13:26:30

How to choose a funnel when adding a deal to the unsorted?

GitHub I
use this library to add a deal. The deal is added, everything is OK, but I don’t understand how to choose a funnel, can you tell me? Here is the code that I use when adding, but it adds, as I understand it, to the first funnel.

$lead = $amo->lead;
//$lead->debug(true); // Режим отладки
$lead['name'] = 'Тестовая сделка1234';
$lead['status_id'] = 3125389;
$lead['price'] = 3000;
$lead['pipeline_id'] = 3125389;
$lead['tags'] = ['тест1'];
$lead->addCustomField(167379, [
    [388733, 'Стартап'],
]);
$lead->addCustomField(167381, [
    [388743, '6 месяцев'],
]);
$lead->addCustomField(167411, 'Спецпроект');

$id = $lead->apiAdd();
print_r($id);

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question