Scoped GlideSysAttachment - write(GlideRecord record, String fileName, String contentType, String content)

Inserts an attachment for the specified record.

Table 1. Parameters
Name Type Description
table GlideRecord The record to which the attachment is to be attached.
fileName String The attachment's file name.
contentType String The attachment's content type.
content String The attachment content.
Table 2. Returns
Type Description
String The attachment's sysID. Returns null if the attachment was not added.