AddAttachmentFieldValue
Description
Inserts the file and description into the list of attachments. Adds a new attachment to an entity to the specified attachment field, with the given filename and description.
Note: This method became available in version 2002.05.00.
Syntax
VBScript
entity.AddAttachmentFieldValue
attachment_fieldname, filename,
description
Perl
$entity->AddAttachmentFieldValue
(attachment_fieldname, filename,
description);
- Identifier
- Description
- entity
- An Entity object representing a user data record. Inside a hook, if you omit this part of the syntax, the Entity object corresponding to the current data record is assumed (VBScript only).
- attachment_fieldname
- A String containing the attachment field name you are adding this attachment to.
- filename
- A String containing the file name of the attachment.
- description
- A String containing a description of the attachment.
- Return value
- Returns a String. The String returned is empty if the update is permitted, or an explanation of the error.