AccountGetAttachmentFile Method |
This method enables you to retrieve a file that is added as an attachment in the Attachment Tab of an Account item.
Namespace: AccountService
C#
public long GetAttachmentFile( long lObjectType, long objectID, long lAttachmentID, out byte[] fileBlob, out string error )
Parameters
- lObjectType
- Type: SystemInt64
[in] The ID of the Account Object. - objectID
- Type: SystemInt64
[in] The ID of the Account item. - lAttachmentID
- Type: SystemInt64
[in] The ID of the attachment that must be retrieved. - fileBlob
- Type: SystemByte
[out] The binary format of the content of the attachment. - error
- Type: SystemString
The error messages returned when the get operation fails.
Return Value
Type: Int64The GetAttachmentFile method returns 0 if the get operation is successful and a negative value if the operation fails.
