crm.timeline.comment.update
Scope: catalog Permissions to execute: for all
crm.timeline.comment.update(id)
The method updates a comment.
Parameters
Parameter | Description |
---|---|
id | Timeline comment ID. |
fields | Set of fields - array type array ("field"=>"value"[, ...]) , containing field values. Available values - COMMENT and FILES.
Note: to find out the necessary field format, execute the method crm.timeline.comment.fields and view the format of retrieved values for these fields. |
Attention! Starting from version crm 23.100.0 receives only the parameters with the 'fields' key defined in lower case. Other undocumented variants: Fields, FIELDS, arFields are not accepted.
Example
var id = prompt("Enter ID"); BX24.callMethod( "crm.timeline.comment.update", { id: id, fields: { "COMMENT": "Comment was changed" } }, function(result) { if(result.error()) console.error(result.error()); else console.info(result.data()); } );
© «Bitrix24», 2001-2024