crm.contact.update
crm.contact.update(id, fields)
Updates the specified (existing) contact.
Important! It is strongly recommended to pass the full set of fields to the update method when updating the address. Specifics of address fields are described here.
Parameters
Parameter | Description |
---|---|
id | Specifies the contact ID. |
fields | An array in format array("field"=>"value"[, ...]) containing values of the contact fields that need to be updated. The fields can be one or more of those returned by crm.contact.fields. |
Example
<script type="text/javascript"> var id = prompt("Enter ID"); BX24.callMethod( "crm.contact.update", { id: id, fields: { "TYPE_ID": "JOURNALIST", "SOURCE_ID": "CONFERENCE" } }, function(result) { if(result.error()) console.error(result.error()); else { console.info(result.data()); } } ); </script>
© «Bitrix Inc.»,
2001-2021,
«Bitrix Inc.», 2021
User Comments
User comments are not part of official documentation. Use information provided by other users in the comments at your own risk.The User Comments section is not to be used as a feature discussion board. Only registered users can post comments. Your comment will be visible once it has been approved by the moderator.