PortalDeleteAttachment Method
This method enables deleting an attachment in the Attachment tab of an Order record.

Namespace:  PortalService
 

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

Parameters

objectType
Type: SystemInt64
[in]The ID of the Order object.
tabID
Type: SystemInt64
[in]The ID of the Attachment tab of the order 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 message returned if the operation fails.

Return Value

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