MobileCRM.Services.ChatService.attachNoteToPost - Resconet/JSBridge GitHub Wiki
Creates a note (annotation) entity with the file attachment related to specified post.
The file path can be either a relative path to application data or a full path to a file being attached.
Argument | Type | Description |
---|---|---|
postId | String | An id of the resco_chatpost entity which should have the note attached. |
filePath | String | A path to a file that has to be attached. |
mimeType | String | A MIME type of the file. |
subject | String | A text which will be used as note's subject. |
callback | function(MobileCRM.DynamicEntity) | The callback function which is called asynchronously with MobileCRM.DynamicEntity representing newly created annotation record. |
errorCallback | function(errorMsg) | The errorCallback which is called in case of error. |
scope | Object | The scope for callbacks. |