Table Attachment
ID 5062
Namespace: Microsoft.CRM.Interaction
Properties
Name
Value
Caption
Attachment
DataClassification
CustomerContent
Fields
Name
Type
Description
"No."
Integer
"Attachment File"
Blob
"Storage Type"
Enum Microsoft.CRM.Interaction."Attachment Storage Type"
"Storage Pointer"
Text[250]
"File Extension"
Text[250]
"Read Only"
Boolean
"Last Date Modified"
Date
"Last Time Modified"
Time
"Merge Source"
Blob
"Email Message ID"
Blob
"Email Entry ID"
Blob
"Email Message Checksum"
Integer
"Email Message Url"
Blob
SystemId
Guid
SystemCreatedAt
DateTime
SystemCreatedBy
Guid
SystemModifiedAt
DateTime
SystemModifiedBy
Guid
SystemRowVersion
BigInteger
Methods
OpenAttachment
procedure OpenAttachment(Caption: Text[260], IsTemporary: Boolean, LanguageCode: Code[10])
Parameters
Name
Type
Description
Caption
Text[260]
IsTemporary
Boolean
LanguageCode
Code[10]
OpenAttachment
procedure OpenAttachment(var SegmentLine: Record "Segment Line", WordCaption: Text)
Parameters
InsertRecord
[InherentPermissions(TableData,5062,r)]
procedure InsertRecord()
ShowAttachment
procedure ShowAttachment(var SegLine: Record "Segment Line", WordCaption: Text)
Parameters
ExportAttachmentToTempBlob
Export the Attachment to the TempBlob Codeunit.
procedure ExportAttachmentToTempBlob(var TempBlob: Codeunit "Temp Blob"): Boolean
Parameters
Returns
Type
Description
Boolean
true if a value attachment is return in the TempBlob parameter; otherwise false
WizSaveAttachment
procedure WizSaveAttachment()
ConstDiskFileName
procedure ConstDiskFileName(): Text
Returns
LinkToMessage
procedure LinkToMessage(MessageID: Text, EntryID: Text, RunTrigger: Boolean)
Parameters
Name
Type
Description
MessageID
Text
EntryID
Text
RunTrigger
Boolean
Checksum
procedure Checksum(MessageID: Text): Integer
Parameters
Name
Type
Description
MessageID
Text
Returns
GetMessageID
procedure GetMessageID(): Text
Returns
SetMessageID
procedure SetMessageID(MessageID: Text)
Parameters
Name
Type
Description
MessageID
Text
SetEntryID
procedure SetEntryID(EntryID: Text)
Parameters
Name
Type
Description
EntryID
Text
GetEmailMessageUrl
procedure GetEmailMessageUrl(): Text
Returns
SetEmailMessageUrl
procedure SetEmailMessageUrl(Url: Text)
Parameters
Name
Type
Description
Url
Text
Read
procedure Read(): Text
Returns
Write
procedure Write(SourceText: Text)
Parameters
Name
Type
Description
SourceText
Text
ReadHTMLCustomLayoutAttachment
procedure ReadHTMLCustomLayoutAttachment(var ContentBodyText: Text, var CustomLayoutCode: Code[20]): Boolean
Parameters
Name
Type
Description
ContentBodyText
Text
CustomLayoutCode
Code[20]
Returns
ReadHTMLCustomLayoutAttachment
procedure ReadHTMLCustomLayoutAttachment(var ContentBodyText: Text, var CustomLayoutCode: Code[20], var ReportLayoutName: Text[250]): Boolean
Parameters
Name
Type
Description
ContentBodyText
Text
CustomLayoutCode
Code[20]
ReportLayoutName
Text[250]
Returns
WriteHTMLCustomLayoutAttachment
procedure WriteHTMLCustomLayoutAttachment(ContentBodyText: Text, CustomLayoutCode: Code[20])
Parameters
Name
Type
Description
ContentBodyText
Text
CustomLayoutCode
Code[20]
WriteHTMLCustomLayoutAttachment
procedure WriteHTMLCustomLayoutAttachment(ContentBodyText: Text, ReportLayoutName: Text[250])
Parameters
Name
Type
Description
ContentBodyText
Text
ReportLayoutName
Text[250]
IsHTML
procedure IsHTML(): Boolean
Returns
IsHTMLReady
procedure IsHTMLReady(): Boolean
Returns
IsHTMLCustomLayout
procedure IsHTMLCustomLayout(): Boolean
Returns
GetServerFileName
procedure GetServerFileName(DiskFileName: Text): Text
Parameters
Name
Type
Description
DiskFileName
Text
Returns
SetAttachmentFileFromBlob
procedure SetAttachmentFileFromBlob(TempBlob: Codeunit "Temp Blob")
Parameters
Events
OnAfterCopyAttachmentAsFile
[IntegrationEvent(False,False)]
local procedure OnAfterCopyAttachmentAsFile(var FromAttachment: Record Attachment, var ToAttachment: Record Attachment)
Parameters
OnBeforeShowAttachment
[IntegrationEvent(False,False)]
local procedure OnBeforeShowAttachment(var SegLine: Record "Segment Line", WordCaption: Text, var IsHandled: Boolean, var Attachment: Record Attachment)
Parameters
OnBeforeExportAttachmentToServerFile
[IntegrationEvent(False,False)]
local procedure OnBeforeExportAttachmentToServerFile(var Attachment: Record Attachment, ExportToFile: Text, var Result: Boolean, var IsHandled: Boolean)
Parameters
OnBeforeImportAttachmentFromServerFile
[IntegrationEvent(False,False)]
local procedure OnBeforeImportAttachmentFromServerFile(var Attachment: Record Attachment, ImportFromFile: Text, var Result: Boolean, var IsHandled: Boolean)
Parameters
OnShowAttachmentOnAfterCalcAttachmentFile
[IntegrationEvent(False,False)]
local procedure OnShowAttachmentOnAfterCalcAttachmentFile(var Attachment: Record Attachment)
Parameters
OnBeforeOpenAttachment
[IntegrationEvent(False,False)]
local procedure OnBeforeOpenAttachment(var Attachment: Record Attachment, var Caption: Text[260], IsTemporary: Boolean, LanguageCode: Code[10], var IsHandled: Boolean)
Parameters
OnBeforeWizSaveAttachment
[IntegrationEvent(False,False)]
local procedure OnBeforeWizSaveAttachment(var Attachment: Record Attachment, var IsHandled: Boolean)
Parameters
OnBeforeWizEmbeddAttachment
[IntegrationEvent(False,False)]
local procedure OnBeforeWizEmbeddAttachment(var Attachment: Record Attachment, FromAttachment: Record Attachment, var IsHandled: Boolean)
Parameters
OnBeforeConstDiskFileName
[IntegrationEvent(False,False)]
local procedure OnBeforeConstDiskFileName(var Attachment: Record Attachment, var DiskFileName: Text)
Parameters
See also