AccountDeleteAttachment Method
This method enables you to delete an attachment available in the Attachment tab of an Account item in CampusNexus CRM.

Namespace:  AccountService
 

Syntax
C#
public long DeleteAttachment(
	long objectType,
	long objectID,
	long tabID,
	long lAttachmentId,
	out string error
)

Parameters

objectType
Type: SystemInt64
[in] The ID of the Account Object.
objectID
Type: SystemInt64
[in] The ID of the Account item for which the attachment has to be deleted from the Attachment tab.
tabID
Type: SystemInt64
[in] The ID of the Attachment Tab of the Account Object where the attachment is available.
lAttachmentId
Type: SystemInt64
[in] The ID of the Attachment that must be deleted.
error
Type: SystemString
[out] The error messages returned when the delete operation fails.

Return Value

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