Table 5062 "Attachment"
Base Application · Microsoft.CRM.Interaction
Across versions
- BC23present
- BC24declaration changed
- BC251 procedures removed, 1 events added
- BC261 procedures changed, 1 procedures removed
- BC271 procedures added, 1 procedures removed
- BC28-30unchanged
Neighbourhood 11 connected objects and pages
Base Application · Microsoft.CRM.Interaction · BC23-30 · source at ea08af5e · facts from BC29
Properties
| Property | Value |
|---|---|
| Caption | Attachment |
| DataClassification | CustomerContent |
Fields
Explanation: the field’s ToolTip in the code; without one, the ToolTip of a page control bound to the field (marked via the page); without that, its Caption (marked caption) when that differs from the name.
| No. | Name | Type | Explanation | Notes |
|---|---|---|---|---|
| 1 | No. | Integer | — | NotBlank |
| 2 | Attachment File | BLOB | — | |
| 3 | Storage Type | Enum “Attachment Storage Type” | — | enum Enum 5062 “Attachment Storage Type” |
| 4 | Storage Pointer | Text[250] | — | |
| 5 | File Extension | Text[250] | — | |
| 6 | Read Only | Boolean | — | |
| 7 | Last Date Modified | Date | — | |
| 8 | Last Time Modified | Time | — | |
| 13 | Merge Source | BLOB | — | |
| 14 | Email Message ID | BLOB | — | |
| 15 | Email Entry ID | BLOB | — | |
| 16 | Email Message Checksum | Integer | — | |
| 17 | Email Message Url | BLOB | — |
Keys
- Key1: No. (clustered)
- Key2: Email Message Checksum
Events published
OnAfterCopyAttachmentAsFile(var FromAttachment: Record Attachment; var ToAttachment: Record Attachment)(integration)OnBeforeShowAttachment(var SegLine: Record "Segment Line"; WordCaption: Text; var IsHandled: Boolean; var Attachment: Record Attachment)(integration)OnBeforeExportAttachmentToServerFile(var Attachment: Record Attachment; ExportToFile: Text; var Result: Boolean; var IsHandled: Boolean)(integration)OnBeforeImportAttachmentFromServerFile(var Attachment: Record Attachment; ImportFromFile: Text; var Result: Boolean; IsTemporary: Boolean; Overwrite: Boolean; var IsHandled: Boolean)+ BC27 − BC27 (integration)OnShowAttachmentOnAfterCalcAttachmentFile(var Attachment: Record Attachment)(integration)OnBeforeOpenAttachment(var Attachment: Record Attachment; var Caption: Text[260]; IsTemporary: Boolean; LanguageCode: Code[10]; var IsHandled: Boolean)(integration)OnBeforeWizSaveAttachment(var Attachment: Record Attachment; var IsHandled: Boolean)(integration)OnBeforeWizEmbeddAttachment(var Attachment: Record Attachment; FromAttachment: Record Attachment; var IsHandled: Boolean)(integration)OnBeforeConstDiskFileName(var Attachment: Record Attachment; var DiskFileName: Text)+ BC25 (integration)
Procedures
OpenAttachment(Caption: Text[260]; IsTemporary: Boolean; LanguageCode: Code[10])OpenAttachment(var SegmentLine: Record "Segment Line"; WordCaption: Text)InsertRecord()Δ BC26ShowAttachment(var SegLine: Record "Segment Line"; WordCaption: Text)ExportAttachmentToClientFile(var ExportToFile: Text): BooleanImportAttachmentFromClientFile(ImportFromFile: Text; IsTemporary: Boolean; IsInherited: Boolean): BooleanExportAttachmentToServerFile(var ExportToFile: Text): BooleanExportAttachmentToTempBlob(var TempBlob: Codeunit "Temp Blob"): Boolean+ BC27: Export the Attachment to the TempBlob Codeunit.ImportAttachmentFromServerFile(ImportFromFile: Text; IsTemporary: Boolean; Overwrite: Boolean): BooleanImportAttachmentFromStream(InStream: InStream; FileExtension: Text): Integer(internal)RemoveAttachment(Prompt: Boolean): BooleanWizEmbeddAttachment(FromAttachment: Record Attachment)WizSaveAttachment()ConstDiskFileName(): TextLinkToMessage(MessageID: Text; EntryID: Text; RunTrigger: Boolean)Checksum(MessageID: Text): IntegerGetMessageID(): TextSetMessageID(MessageID: Text)SetEntryID(EntryID: Text)GetEmailMessageUrl(): TextSetEmailMessageUrl(Url: Text)Read(): TextWrite(SourceText: Text)ReadHTMLCustomLayoutAttachment(var ContentBodyText: Text; var CustomLayoutCode: Code[20]): BooleanReadHTMLCustomLayoutAttachment(var ContentBodyText: Text; var CustomLayoutCode: Code[20]; var ReportLayoutName: Text[250]): BooleanWriteHTMLCustomLayoutAttachment(ContentBodyText: Text; CustomLayoutCode: Code[20])WriteHTMLCustomLayoutAttachment(ContentBodyText: Text; ReportLayoutName: Text[250])IsHTML(): BooleanIsHTMLReady(): BooleanIsHTMLCustomLayout(): BooleanGetServerFileName(DiskFileName: Text): TextSetAttachmentFileFromBlob(TempBlob: Codeunit "Temp Blob")SetAttachmentFileFromStream(InStream: InStream)(internal)
Plus 8 local procedures.
Triggers
OnInsert, OnModify
Referenced by
4 fields in 4 objects relate to this table (TableRelation or CalcFormula).
- Table 5065 “Interaction Log Entry”: Attachment No.
- Table 5074 “Delivery Sorter”: Attachment No.
- Table 5077 “Segment Line”: Attachment No.
- Table 5196 “To-do Interaction Language”: Attachment No.
Extended by
Calls
From the extracted call graph of BC29 (graphify-al on the snapshot checkout): calls whose target is known from a declared type or an Object::"Name" argument. Interface dispatch and calls through events are not counted, so the list is not complete.
- Codeunit 419 “File Management” (17 calls:
ExportAttachmentToClientFile → DeleteServerFile,ExportAttachmentToClientFile → Magicpath,ExportAttachmentToClientFile → ServerTempFileName, …) - Codeunit 4100 “Temp Blob” (4 calls:
ExportAttachmentToServerFile → FromRecord,ExportAttachmentToTempBlob → FromRecord,ProcessWebAttachment → FromRecord, …) - Codeunit 5052 “AttachmentManagement” (2 calls:
ImportAttachmentFromClientFile → InsertAttachment,PreviewHTMLContent → LoadHTMLContent) - Codeunit 5069 “Word Template Interactions” (2 calls:
ShowAttachment → IsWordDocumentExtension,ShowAttachment → RunMergedDocument) - Codeunit 9500 “Sequence No. Mgt.” (2 calls:
InsertRecord → GetNextSeqNo,InsertRecord → RebaseSeqNo) - Codeunit 4030 “Client Type Management” (1 call:
OpenAttachment → GetCurrentClientType)
Ask your agent
Procedure bodies are not stored here (D10). The call sections above are our own, per object, from the BC29 call graph. For a procedure body or the calls of one procedure, ask bc-code-atlas (external, by Stefan Maron, MIT; default corpus w1-28), which the bc-observatory plugin connects: bcatlas_resolve_node(object_type: "table", object_name: "Attachment"), then bcatlas_get_procedure_body or bcatlas_get_neighbors on the returned id.