Documentation

crm.requisite.bankdetail.add

crm.requisite.bankdetail.add(fields)

Creates new bank details.

Parameters

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

Attention! ENTITY_ID does not specify contact/company ID, but a requisite ID.

Example



BX24.callMethod(
    "crm.requisite.bankdetail.add", 
    {
        fields:
        { 
			"ENTITY_ID":2,
			"COUNTRY_ID":1,
			"NAME":"Bank details",
			"XML_ID":"1e4641fd-2dd9-31e6-b2f2-105056c00008",
			"ACTIVE":"Y",
			"SORT":100			
        }
    }, 
    function(result) 
    {
        if(result.error())
            console.error(result.error());
        else
            console.info("Bank details with ID are created" + result.data());
    }
);


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