Attachment.create(contents,contentType,name,description,remarks,participant)

Creates a new attachment for the current instance. Creates a new attachment with the given contents, name, description and remarks For example: binaryB = BinaryFile.readToBinaryFrom(name : "C:/tmp/attachexample.xml") create Attachment using contents = binaryB, name = "attachexample.xml", contentType = "text/xml", description = "This file was in /tmp", remarks = "Remark: this attachment was attached automatically"

Arguments:

Name Type Description Mode
contents Binary attachment data. in
contentType String in
name String name of the file for the attachment. in
description String display name for the attachment. in
remarks String attachment comment. in
participant Fuego.Lib.Participant in