AccountUpdateAttachmentFile Method
This method enables you to add or update an attachment in the Attachment tab of an Account item.

Namespace:  AccountService
 

Syntax
C#
public long UpdateAttachmentFile(
	long lObjectType,
	long lobjectID,
	ref long lAttachmentID,
	long lTabId,
	byte[] fileBlob,
	string strAttName,
	out string error
)

Parameters

lObjectType
Type: SystemInt64
[in] Object ID of the Account Object.
lobjectID
Type: SystemInt64
[in] The ID of the Contact item for which you want to add or update attachment file in the Attachment tab.
lAttachmentID
Type: SystemInt64
[ref] The ID of the attachment. This parameter is passed as input when you want to update an existing attachment. However, it is returned as output when a new attachment is added to the Attachment tab.
lTabId
Type: SystemInt64
[in] The ID of the Attachment Tab of the Account Object.
fileBlob
Type: SystemByte
[in] The binary format of the content of the attachment.
strAttName
Type: SystemString
[in] The name of the attachment file.
error
Type: SystemString
The error messages returned when the update operation fails.

Return Value

Type: Int64
The UpdateAttachmentFile method returns 0 if the update operation is successful and a negative value if the operation fails.
See Also