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 | when deleting CRM product catalog. | 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 company | CCrmCompany::Add | |
OnBeforeCrmCompanyUpdate | before updating a company | CCrmCompany::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 quote | CCrmQuote::Add | |
OnAfterCrmQuoteAdd | after adding a quote | CCrmQuote::Add | |
OnBeforeCrmQuoteUpdate | before updating a quote | CCrmQuote::Update | |
OnAfterCrmQuoteUpdate | after updating a quote | CCrmQuote::Update | |
OnBeforeCrmQuoteDelete | before deleting a quote | CCrmQuote::Delete | |
OnAfterCrmQuoteDelete | after deleting a quote | CCrmQuote::Delete | |
OnBeforeCrmQuoteNumberSet | before assigning a number to quote | CCrmQuote::SetQuoteNumber | |
OnAfterCrmQuoteProductRowsSave | after adding product to quote | CCrmQuote::SaveProductRows |
Invoices
Event | Called | Method | Available from version |
---|---|---|---|
OnBeforeCrmInvoiceUpdate | before updating an invoice | CCrmInvoice::Add | |
OnBeforeCrmInvoiceAdd | before adding an invoice | CCrmInvoice::Add | |
OnBeforeCrmInvoiceDelete | before deleting an invoice | CCrmInvoice::Delete | |
OnAfterCrmInvoiceDelete | after deleting an invoice | CCrmInvoice::Delete | |
OnBeforeCrmInvoiceSetStatus | before assigning an invoice status | CCrmInvoice::SetStatus | |
OnAfterCrmInvoiceSetStatus | after assigning an invoice status | CCrmInvoice::SetStatus |
Recycle bin
Event | Called | Method | Available from version |
---|---|---|---|
OnAfterMoveToRecycleBin | after moving document to recycle bin | BaseController::fireAfterMoveToBinEvent | |
OnAfterRecoverFromRecycleBin | after restoring document from recycle bin | BaseController::fireAfterRecoverEvent | |
OnAfterEraseFromRecycleBin | after clearing recycle bin | BaseController::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::GetStatus | OnCrmStatusGetList | |
* is used for re-defining statuses in database. It's not recommended for use. |
© «Bitrix24», 2001-2024