crm.deal.userfield.update
Scope: catalog Permissions: all
crm.deal.userfield.update(id, fields)
Updates existing user deals field.
Parameters
Parameter | Description |
---|---|
id | User field ID. |
fields | Specifies an array of the fields to be updated ("updated field"=>"value"[, ...]), where "updated field" can have values, returned by crm.userfield.fields method. |
LIST | Contains sets of values for list-type user fields. Indicated when creating/updating the field. Each value is an array with the following fields:
|
Example
var id = prompt("Enter ID"); var label = prompt("Enter new title"); BX24.callMethod( "crm.deal.userfield.update", { id: id, fields: { "EDIT_FORM_LABEL": label, "LIST_COLUMN_LABEL": label } }, function(result) { if(result.error()) console.error(result.error()); else { console.dir(result.data()); if(result.more()) result.next(); } } );
© «Bitrix24», 2001-2024