add_attachment

Adds an attachment to a record.

Synopsis

add_attachment [common options] [-t/ype record type] -a/ction name] [-f/ield field name] [-co/mment comment] [ -record record id] file name ...

Description

Adds a file as an attachment to a record. Multiple file names can be given. If multiple file names are given and multiple comments are given, the comments are assigned to succeeding file names.

Options and arguments

-t/ype record type
The type of record to find. If no value is provided, the default record type is used.
-a/ction name
The name of the action. If no value is provided, the action "Modify" is used.
- f/ield field name
The name of the attachments record field. If no value is provided, the field name "Attachments" is used.
-co/mment comment
The comment to associate with the attachment.
-record record id
The record id to associate with the attachment.

Examples

For Windows:

CQTOOL> add_attachment -record 9243 screen.jpeg -co "C:\\Screen shot.jpg"

For Unix:

CQTOOL> add_attachment -record 9243 screen.jpeg -co "opt/rational/Screen shot.jpg"

Feedback