...
Type | Description |
---|---|
String | The attachment content as a string. |
Example)
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
let attach = new SimpleAttachment();
let content = attach.getContent('157052637119478714'); |
rename(attachmentId, fileName)
...
Name | Type | Mandatory | Default Value |
---|---|---|---|
record | SimpleRecord | Y | N |
filename | String | Y | N |
contentType | String | Y | N |
content | String | Y | N |
Example:
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
let attach = new SimpleAttachment();
let record = attach.write('readme.md', 'text/markdown', '# h1 title', '0229fa8a-bcbe-1f28-022e-34d3e6ca3ece'); |