Documentation

Defining internal implementation method

Presently,CRM has several API variants for handling various entity types

It's best to use the new API, but it's not supported or supported only partially.

At the moment of CRM 22.100.0 release, the new API is fully supported in:

  • Deals;
  • Leads;
  • Quotes;
  • Invoices (new version);
  • Smart processes.

New API in read only mode is additionally supported in:

  • Contacts;
  • Companies.

Below are additional methods, which help to determine, which type needs a corresponding API

MethodDescription Available from version
\CCrmOwnerType::isUseFactoryBasedApproach(
    int $entityTypeId
): bool
Method returns true, if type fully supports handling of the new API.
\CCrmOwnerType::isUseDynamicTypeBasedApproach(
    int $entityTypeId
): bool
Method returns true, if entity type internal structure is based onsmart processes.
\CCrmOwnerType::isDynamicTypeBasedStaticEntity(
    int $entityTypeId
): bool
Method returns true, if entity type is based on SPAs, but is not an SPA itself. Presently, such are only new invoices.
\CCrmOwnerType::getDynamicTypeBasedStaticEntityTypeIds(
): array
Method returns array with entity type IDs based in SPAs, but are not SPA themselves. Presently, such are only new invoices.


© «Bitrix24», 2001-2024
Up