Documentation

crm.contact.details.configuration.reset

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

Parameters

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.

Example

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


© «Bitrix Inc.», 2001-2020, «Bitrix Inc.», 2020