Documentation

crm.requisite.preset.update

crm.requisite.preset.update(fields)

Updates requisite template.

Parameters

Parameter Description
fieldsSet of fields - is an array ("field"=>"value"[, ...]), contains 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


var id = prompt("Enter ID");
BX24.callMethod(
    "crm.requisite.preset.update", 
    {
        id: id,
		fields:
        { 
            "ENTITY_TYPE_ID": 8,
            "COUNTRY_ID": 1,
            "NAME": "LLC (archive)",            
            "ACTIVE": "N"            
        }
    }, 
    function(result) 
    {
        if(result.error())
            console.error(result.error());
        else
        {
            console.info(result.data());						
        }
    }
);



© «Bitrix24», 2001-2022
Up