php bitrix-php crm.company

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了php bitrix-php crm.company相关的知识,希望对你有一定的参考价值。

<?php
namespace Bitrix24\CRM\Company;

$company = new Bitrix24\CRM\Company();

//Get list of company items.
$start = 0;
$order = { "DATE_CREATE": "ASC" };
$filter = { "INDUSTRY": "MANUFACTURING", "COMPANY_TYPE": "CUSTOMER" };
$select = [ "ID", "TITLE", "CURRENCY_ID", "REVENUE" ];
$result = $company->getList($order, $filter, $select, $start);
$result->data();

//Add a new company to CRM
$fields = { 
    "TITLE": "Best Coffees LLC",
    "COMPANY_TYPE": "CUSTOMER",
    "INDUSTRY": "MANUFACTURING",
    "EMPLOYEES": "EMPLOYEES_2",
    "CURRENCY_ID": "GBP",
    "REVENUE" : 3000000,
    "LOGO": { "fileData": document.getElementById('logo') },
    "OPENED": "Y", 
    "ASSIGNED_BY_ID": 1, 
    "PHONE": [ { "VALUE": "555888", "VALUE_TYPE": "WORK" } ] 	
};
$company->add($fields)->data();

//Updates the specified (existing) company
$company->update($bitrix24CompanyId, $fields);

//Returns a company associated with the specified company ID.
$company->get($bitrix24CompanyId);

//Deletes the specified company and all the associated objects
$company->delete($bitrix24CompanyId);

//Returns the description of the fields available to company.
$company->fields();

以上是关于php bitrix-php crm.company的主要内容,如果未能解决你的问题,请参考以下文章

php bitrix-php crm联系

php bitrix-php crm领先

php bitrix-php crm.company

php bitrix-php crm.deal

linux 安装多个PHP版本(php5.6 php7.1 php7.2 php7.3 php7.4 php8.0)nginx配置php多版本

php [guzzle php] guzzle php #php