Attachment Operations Procedures

Prev Next

Procedure Name

Description

CopyAttachment

Copies an attachment from source folder to destination folder. Source AttachmentInfo and destination folder Id should be provided. When successful, destination attachment GUID will be returned, otherwise returns empty string

DeleteAttachments

Deletes specified list of attachment GUIDs from the folder. If file GUIDs list is empty then it deletes all attachments from the folder

GetAttachment

Gets attachment content as CaseAttachment object for specified file GUID

GetAttachmentInfo

Gets AttachmentInfo object for a specified file GUID

GetAttachmentProperties

Gets Dictionary of custom properties for specified list of file GUIDs from a specified folder Id. Custom properties are returned as Record object. Dictionary key wil be file GUID and value will be Record object

GetFileLinks

Gets the list of FileLink objects associate with File field in a specified folder. If File field is repeating field then specify the recordId, otherwise specify recordId as zero.

GetFolderAttachments

Gets the list of AttachmentInfo objects for attachments in a folder. Folder Id should be provided to get the list of AttachmentInfo objects for all attachments

LockAttachment

Locks the specified attachment by logged in user

SaveAttachment

Saves the attachment in the repository and returns the new attachment guid

UndoCheckOutAttachment

Undo Check out the specified attachment

UnLockAttachment

Unlocks the specified attachment by logged in user

UpdateGUIDsInFileLinks

Updates the file GUIDs in File fields in a folder based on Dictionary of old and new file GUIDs. This may be required when a folder data is copied from another folder and file GUIDs in File field needs to be updated with new file GUIDs. Dictionary key should be old file GUID and value should be new file GUID