Show / Hide Table of Contents

Class AttachmentHelper

Utility class for attachments helper methods.

Inheritance
Object
AttachmentHelper
Namespace: SuperOffice.CRM.Attachment
Assembly: SoDataBase.dll
Syntax
public static class AttachmentHelper : Object

Methods

AddAttachmentsToMessage(Int32, Int32[])

Utility class for attachments helper methods.

Declaration
public static void AddAttachmentsToMessage(int ejMessageId, int[] attachmentIds)
Parameters
Type Name Description
Int32 ejMessageId
Int32[] attachmentIds

AddAttachmentsToMessage2(Int32, Int32[])

TicketAgentImplementation::AddAttachments

Declaration
public static void AddAttachmentsToMessage2(int ejMessageId, int[] attachmentIds)
Parameters
Type Name Description
Int32 ejMessageId
Int32[] attachmentIds
Exceptions
Type Condition
SoSentryException

DeleteAttachment(Int32)

Deletes attachment from attachment table and from disk. It will NOT delete the link between the attachment and ticket, kb entry etc.

Declaration
public static void DeleteAttachment(int attachmentId)
Parameters
Type Name Description
Int32 attachmentId

Id of attachment to delete

GetAttachmentCount(Int32[])

Utility class for attachments helper methods.

Declaration
public static int GetAttachmentCount(params int[] ticketIds)
Parameters
Type Name Description
Int32[] ticketIds
Returns
Type Description
Int32

GetDefaultAttachmentLocationId()

Utility class for attachments helper methods.

Declaration
public static int GetDefaultAttachmentLocationId()
Returns
Type Description
Int32

HasAttachmentAccess(Int32, EFieldRight)

Utility class for attachments helper methods.

Declaration
public static bool HasAttachmentAccess(int attachmentId, EFieldRight requiredRight)
Parameters
Type Name Description
Int32 attachmentId
EFieldRight requiredRight
Returns
Type Description
Boolean

UpdateTicketHasAttachment(Int32, Boolean)

Utility class for attachments helper methods.

Declaration
public static void UpdateTicketHasAttachment(int ticketId, bool value)
Parameters
Type Name Description
Int32 ticketId
Boolean value
© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top