Documentation

crm.requisite.preset.add

Scope: catalog Permissions to execute: for all

crm.requisite.preset.add(fields)

Creates new template.

Parameters

Parameter Description
fieldsSet of fields - is an array ("field"=>"value"[, ...]), containing values of template fields, returned by the method crm.requisite.preset.fields.
Note: to find out the required field format, execute the method crm.requisite.preset.fields to view the retrieved field format.

Example

BX24.callMethod(
    "crm.requisite.preset.add", 
    {
        fields:
        { 
            "ENTITY_TYPE_ID": 8,
            "COUNTRY_ID": 1,
            "NAME": "LLC",
            "XML_ID": "#CRM_REQUISITE_PRESET_DEF_EN_INDIVIDUAL#",
            "ACTIVE": "Y",
            "SORT": 520
        }
    }, 
    function(result) 
    {
        if(result.error())
            console.error(result.error());
        else
            console.info("Template with ID is created" + result.data());
    }
);


© «Bitrix24», 2001-2024