Documentation

crm.company.details.configuration.set

The method sets configuration for company details. Writes personal configuration for selected user details or general configuration 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 setting personal configuration.
data Array of parameters.

Example

//Set personal configuration for company details for user with identifier 1.
BX24.callMethod(
    "crm.company.details.configuration.set",
    {
        scope: "P",
        userId: 1,
        data:
            [
                {
                    name: "main",
                    title: "Company details",
                    type: "section",
                    elements:
                        [
                            { name: "TITLE" },
                            { name: "LOGO" },
                            { name: "COMPANY_TYPE" },
                            { name: "POST" },
                            { name: "PHONE" },
                            { name: "EMAIL" },
                            { name: "CONTACT" }
                        ]
                },
                {
                    name: "additional",
                    title: "Additional",
                    type: "section",
                    elements:
                        [
                            { name: "INDUSTRY" },
                            { name: "OPENED" },
                            { name: "ASSIGNED_BY_ID" },
                            { name: "COMMENTS" }
                        ]
                }
            ]
    },
    function(result)
    {
        if(result.error())
            console.error(result.error());
        else
            console.dir(result.data());
    }
);
//---


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