Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

TypeDescription
StringThe attachment content as a string.


Example)

Code Block
languagejs
themeEclipse
titlegetContent
let attach = new SimpleAttachment();
let content = attach.getContent('157052637119478714');


rename(attachmentId, fileName)

...

NameTypeMandatoryDefault Value
recordSimpleRecordYN
filenameStringYN
contentTypeStringYN
contentStringYN

Example:

Code Block
languagejs
themeEclipse
titlewrite
let attach = new SimpleAttachment();
let record = attach.write('readme.md', 'text/markdown', '# h1 title', '0229fa8a-bcbe-1f28-022e-34d3e6ca3ece');