This server class provides methods that allow operating with attachments.
copy(sourceTable. sourceID, targetTable. targetID)
...
This method deletes the specified attachment.
Parameter(s):
Name | Type | Mandatory | Default Value |
---|---|---|---|
attachmentID | String | Y | N |
Return:
Type | Description |
---|---|
Void | This method does not return a value. |
Example:
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
let attach = new SimpleAttachment(); attach.deleteAttachment('157052637119478714'); |
...
This method renames the specified attachment.
Parameter(s):
Name | Type | Mandatory | Default Value |
---|---|---|---|
attachmentId | String | Y | N |
fileName | String | Y | N |
Return:
Type | Description |
---|---|
Void | This method does not return a value. |
Example:
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
let attach = new SimpleAttachment(); attach.rename('157052637119478714', 'new_name_1.png'); |
...