Skip to main content
What it does
Applies for associating binary data or files with workspace items. Attachments are passed when sending batch to FlexiCapture Server. When sending batch to folder or FTP folder, attachments are placed to the folder storing the batch and corresponding entries are added to XML description file.
Methods
DefinitionDescription
Has (name: string): boolChecks whether the attachments array contains an attachment with the specified name
AddNew (name: string) : IAttachmentByteArrayAdds a new attachment with the specified name
AddFromFile (name: string, path: string)Adds a new attachment with the specified from the specified path
SaveToFile (name: string, path: string)Saves the attachment with a specified name to a specified path
Delete (name: string)Deletes the attachment file with the specified name
DeleteAll ( )Deletes all attachments
Properties
NameTypeAccessDescription
NamesVARIANTRead-onlyThe array of attachments names
IsEmptyboolRead-onlySpecifies whether the array of user attachments is empty
ByteArray (name: string)IAttachmentByteArrayRead-onlyRetrieves binary data of the attachment by its name