Documentation

crm.lead.details.configuration.reset

The method resets lead details configuration. Deletes personal configuration for selected user details or general configuration, specified for all users.

Note, that Configuration for repeat lead details can differ from the usual lead details configurations. Use the parameter leadCustomerType to switch between configurations for lead details.

Parameters

.
  • 1 - usual leads,
  • 2 - repeat leads
  • Parameter Description Available from version
    scope Configuration scope of application. Available values:
    • P - personal configuration,
    • C - general configuration
    userId User ID. Indicates current ID if not set. Only required when resetting personal configuration.
    extras Extra parameters.
      leadCustomerType parameter for deals can be specified here.

    Example

    //---
    //Reset personal configuration for lead details for user with identifier 1.
    BX24.callMethod(
        "crm.lead.details.configuration.reset",
        {
            scope: "P",
            userId: 1
        },
        function(result)
        {
            if(result.error())
                console.error(result.error());
            else
                console.dir(result.data());
        }
    );
    //---


    © «Bitrix24», 2001-2024
    Up