V
V
Vadim Timoshenko2020-09-09 16:11:59
Bitrix24
Vadim Timoshenko, 2020-09-09 16:11:59

How to correctly pass a custom source?

Created a new source.
I pass it with crm.lead.add.jsonlike this:

$queryData = http_build_query(array(
    'fields' => array(
      ...
      'SOURCE_ID' => 'sitename.ru',
      ...
    ),
    'params' => array("REGISTER_SONET_EVENT" => "Y"),
  ));


In the kanban, on the common board, the source of the transaction is visible. But there is no source inside the deal.
I don't have the "LIDS" stage, I have the "DEALS" stage right away. Is it related somehow? Why is there no source inside the transaction (although it turns out that Bitrix receives information)?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrey Nikolaev, 2020-10-08
@gromdron

In the kanban, on the common board, the source of the transaction is visible. But there is no source inside the deal.

Source - reference value.
The directory has 2 fields: ID (in the case of the directory - a string) and VALUE - the actual value.
The SOURCE_ID field - takes exactly the value ID.
In the public part for viewing, it displays: VALUE (if found) or ID (if there is no value for this directory).
Actually, you did NOT create the sitename.ru source, but Bitrix accepted it as an ID. More details can be found
in the documentation: https ://dev.1c-bitrix.ru/rest_help/crm/auxiliary/s... /auxiliary/s... Add a new one: https://dev.1c-bitrix.ru/rest_help/crm/auxiliary/s...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question