I
I
igspace2021-07-05 21:45:18
Bitrix24
igspace, 2021-07-05 21:45:18

How to write a php script for Bitrix 24 business process?

Not being a programmer, I myself was puzzled by the question of writing a php script for a business process in the Bitrix 24 corporate portal, since simply "knowledgeable people" are playing football on this issue.
To the point. There is a task to connect the CRM module with a third-party module from the marketplace. In essence, transfer data from certain fields in leads and deals to the installed module (company, contact, file, etc.). After reading the documentation, little became clear, in addition, for this task in php, you can use the D7 ORM core. As a result, a number of sleepless nights with no result. Are there examples of ready-made scripts similar to what I need or where to look (study) information to solve this problem?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
I
Ilya, 2021-07-06
@rpsv

You need a standard crm module (whose api is contacttable, companytable, ...), linked to another unknown module (whose api and where should know giving the answer to this question?! ).
I'll try to play Vanga:

$rows = ContactTable::getList([
    'select' => [
        'ID',
        'UF_*'
    ],
    'filter' => [
        'UF_WHAT' => 'нужное значение',
    ],
]);

Are there examples of ready-made scripts similar to what I need or where to look (study) information to solve this problem?

Specify the task. Well, in general, you should learn PHP, study the API and structure of Bitrix and B24, fix something in the source code, and then you can safely call yourself a Bitrix programmer. I understand that this is how it works :)

S
Sergey, 2021-07-12
@oldzas

I'll give you a link to the documentation - there are simple cases below: https://dev.1c-bitrix.ru/rest_help/bizproc/cases/i...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question