Documentation

Events

Activities

Event Called Method Available from version
OnActivityAdd when adding activity to an entity.CCrmActivity::Add
OnActivityDelete when deleting an activity.CCrmActivity::Delete
OnActivityUpdate when updating an activity. CCrmActivity::Update
OnBeforeActivityDelete when deleting an activity.CCrmActivity::Delete

Product catalog

Event Called Method Available from version
OnBeforeCrmCatalogDelete before deleting CRM product catalog.CCrmCatalog::Delete
OnCrmCatalogDelete при удалении каталога товаров CRM.OnCrmCatalogDelete

Mail template

Event Called Method Available from version
OnBeforeMailTemplateDelete before deleting mail template.CCrmMailTemplate::Delete
OnMailTemplateAdd when adding mail template.CCrmMailTemplate::Add
OnMailTemplateDelete when deleting mail template.CCrmMailTemplate::Delete
OnMailTemplateUpdate when updating mail template.CCrmMailTemplate::Update

Products

Event Called Method Available from version
OnBeforeCrmProductDelete before deleting a CRM product.CCrmProduct::Delete
OnCrmProductDelete when deleting CRM product.CCrmProduct::Delete
OnAfterCrmProductUpdate after updating CRM product.CCrmProduct::Update

Companies

Event Called Method Available from version
OnAfterCrmCompanyAdd after adding a company.CCrmCompany::Add
OnAfterCrmCompanyUpdate after updating a company.CCrmCompany::Update
OnBeforeCrmCompanyDelete before deleting a company.CCrmCompany::Delete
OnBeforeCrmCompanyAdd before adding a companyCCrmCompany::Add
OnBeforeCrmCompanyUpdate before updating a companyCCrmCompany::Update
OnAfterCrmCompanyDelete after deleting a company.CCrmCompany::Delete
OnAfterExternalCrmCompanyAdd after adding an external company.CCrmCompany::Add

Contacts

Event Called Method Available from version
OnAfterCrmContactAdd after adding a contact.CCrmContact::Add
OnAfterCrmContactUpdate after updating a contact.CCrmContact::Update
OnBeforeCrmContactDelete before deleting a contact.CCrmContact::Delete
OnBeforeCrmContactAdd before adding a contact.CCrmContact::Add
OnBeforeCrmContactUpdate before updating a contact.CCrmContact::Update
OnAfterExternalCrmContactAdd after adding an external contact.CCrmContact::Add
OnAfterCrmContactDelete after deleting a contact.CCrmContact::Delete

Deals

Event Called Method Available from version
OnAfterCrmDealAdd after adding a deal.CCrmDeal::Add
OnAfterCrmDealUpdate after updating a deal.CCrmDeal::Update
OnBeforeCrmDealDelete before deleting a deal.CCrmDeal::Delete
OnBeforeCrmDealAdd before adding a deal.CCrmDeal::Add
OnBeforeCrmDealUpdate before updating a deal.CCrmDeal::Update
OnAfterCrmDealDelete after deleting a deal.CCrmDeal::Delete
OnAfterExternalCrmDealAdd after adding an external deal.CCrmDeal::Add
OnAfterCrmDealProductRowsSave after adding product to deal.CCrmDeal::SaveProductRows
OnBeforeCrmDealProductRowsSave before adding product to deal.CCrmDeal::SaveProductRows

Leads

Event Called Method Available from version
OnAfterCrmLeadAdd after adding a lead.CCrmLead::Add
OnAfterCrmLeadUpdate after updating a lead.CCrmLead::Update
OnBeforeCrmLeadDelete before deleting a lead.CCrmLead::Delete
OnBeforeCrmLeadAdd before adding a lead.CCrmLead::Add
OnBeforeCrmLeadUpdate before updating a lead.CCrmLead::Update
OnAfterCrmLeadDelete after deleting a lead.CCrmLead::Delete
OnAfterExternalCrmLeadAdd after adding an external lead.CCrmLead::Add
OnAfterCrmLeadProductRowsSave after adding product to lead.CCrmLead::SaveProductRows

Quotes

Event Called Method Available from version
OnBeforeCrmQuoteAdd before adding a quoteCCrmQuote::Add
OnAfterCrmQuoteAdd after adding a quoteCCrmQuote::Add
OnBeforeCrmQuoteUpdate before updating a quoteCCrmQuote::Update
OnAfterCrmQuoteUpdate after updating a quoteCCrmQuote::Update
OnBeforeCrmQuoteDelete before deleting a quoteCCrmQuote::Delete
OnAfterCrmQuoteDelete after deleting a quoteCCrmQuote::Delete
OnBeforeCrmQuoteNumberSet before assigning a number to quoteCCrmQuote::SetQuoteNumber
OnAfterCrmQuoteProductRowsSave after adding product to quoteCCrmQuote::SaveProductRows

Счета

Event Called Method Available from version
OnBeforeCrmInvoiceUpdate before updating an invoiceCCrmInvoice::Add
OnBeforeCrmInvoiceAdd before adding an invoiceCCrmInvoice::Add
OnBeforeCrmInvoiceDelete before deleting an invoiceCCrmInvoice::Delete
OnAfterCrmInvoiceDelete after deleting an invoiceCCrmInvoice::Delete
OnBeforeCrmInvoiceSetStatus before assigning an invoice statusCCrmInvoice::SetStatus
OnAfterCrmInvoiceSetStatus after assigning an invoice statusCCrmInvoice::SetStatus

Recycle bin

Event Called Method Available from version
OnAfterMoveToRecycleBin after moving document to recycle binBaseController::fireAfterMoveToBinEvent
OnAfterRecoverFromRecycleBin after restoring document from recycle binBaseController::fireAfterRecoverEvent
OnAfterEraseFromRecycleBin after clearing recycle binBaseController::fireAfterEraseEvent

Other events

Event Called Method Available from version
OnGetEntityTypes after building list of entity types.CCrmStatus::GetEntityTypes
OnAfterCrmAddEvent after adding an event.CCrmEvent::Add
OnGetActivityProviders when receiving list of active providers.ProviderManager::getProviders
OnBeforeCrmAddEvent before adding an event.CCrmEvent::Add
OnBeforeCrmEventDelete before deleting an event.CCrmEvent::Delete
OnBeforeCrmEventDeleteByElement before deleting all events associated with specific entity.CCrmEvent::DeleteByElement
*OnCrmStatusGetList when requesting CCrmStatus::GetStatusOnCrmStatusGetList
* is used for re-defining statuses in database. It's not recommended for use.

© «Bitrix24», 2001-2022
Up