Codeunit 5052 "AttachmentManagement"
Base Application · Microsoft.CRM.Interaction
Across versions
- BC23-25present
- BC261 procedures added, 1 procedures removed
- BC273 procedures added, 3 procedures removed
- BC28-30unchanged
Neighbourhood 14 connected objects and pages
Base Application · Microsoft.CRM.Interaction · BC23-30 · source at ea08af5e · facts from BC29
Events published
OnAfterSend(var DeliverySorter: Record "Delivery Sorter"; var DeliverySorterHTML: Record "Delivery Sorter"; var DeliverySorterWord: Record "Delivery Sorter"; var DeliverySorterOther: Record "Delivery Sorter"; var InteractionLogEntry: Record "Interaction Log Entry")(integration)OnBeforeDeliverEmailWithAttachment(var DeliverySorter: Record "Delivery Sorter"; var IsHandled: Boolean; var InteractionLogEntry: Record "Interaction Log Entry")(integration)OnBeforeDeliverHTMLEmail(var DeliverySorter: Record "Delivery Sorter"; var InteractionLogEntry: Record "Interaction Log Entry"; var IsHandled: Boolean)(integration)OnBeforeInteractionEMail(var InteractionLogEntry: Record "Interaction Log Entry"; var EMailAddress: Text[80]; var IsHandled: Boolean)(integration)OnBeforeSend(var DeliverySorter: Record "Delivery Sorter"; var IsHandled: Boolean)(integration)OnBeforeSetDeliveryState(var InteractLogEntry: Record "Interaction Log Entry"; var IsSent: Boolean)(integration)OnDeliverEmailWithAttachmentOnBeforeSendEmail(var DeliverySorter: Record "Delivery Sorter"; var InteractionLogEntry: Record "Interaction Log Entry"; AttachmentFileFullName: Text; EmailBodyFilePath: Text)Δ BC27 (integration, obsolete 27.0)OnDeliverHTMLEmailOnBeforeSendEmail(var DeliverySorter: Record "Delivery Sorter"; Attachment: Record Attachment; var InteractionLogEntry: Record "Interaction Log Entry"; EmailBodyFilePath: Text)Δ BC27 (integration, obsolete 27.0)OnProcessDeliverySorterHtml(var DeliverySorter: Record "Delivery Sorter"; var TempDeliverySorter: Record "Delivery Sorter" temporary; Attachment: Record Attachment; I: Integer)(integration)OnProcessDeliverySorterOther(var DeliverySorter: Record "Delivery Sorter"; var TempDeliverySorter: Record "Delivery Sorter" temporary; Attachment: Record Attachment; I: Integer)(integration)OnProcessDeliverySorterWord(var DeliverySorter: Record "Delivery Sorter"; var TempDeliverySorter: Record "Delivery Sorter" temporary; Attachment: Record Attachment; I: Integer)(integration)OnConvertCorrespondenceTypeElse(CorrespondenceType: Option; var ReturnType: Enum "Correspondence Type"; var IsHandled: Boolean)(integration)OnSetDeliveryStateOnBeforeModifyInteractLogEntry(var InteractionLogEntry: Record "Interaction Log Entry"; IsSent: Boolean)(integration)OnBeforeProcessDeliverySorter(var DeliverySorter: Record "Delivery Sorter"; var TempDeliverySorterHtml: Record "Delivery Sorter" temporary; var TempDeliverySorterWord: Record "Delivery Sorter" temporary; var TempDeliverySorterOther: Record "Delivery Sorter" temporary; var IsHandled: Boolean)(integration)OnInsertAttachmentOnAfterAttachmentInserted(var Attachment: Record Attachment; AttachmentNo: Integer; var FromAttachment: Record Attachment; var IsHandled: Boolean)(integration)
Procedures
InsertAttachment(AttachmentNo: Integer): IntegerSend(var DeliverySorter: Record "Delivery Sorter")SendUsingExchange(var DeliverySorter: Record "Delivery Sorter")InteractionEMail(var InteractionLogEntry: Record "Interaction Log Entry"): Text[80]GenerateHTMLContent(var Attachment: Record Attachment; SegmentLine: Record "Segment Line"): BooleanLoadHTMLContent(var Attachment: Record Attachment; SegmentLine: Record "Segment Line"): TextConvertCorrespondenceType(CorrespondenceType: Option "Same as Entry","Hard Copy",Email): Enum "Correspondence Type"+ BC26
Plus 21 local procedures.
Triggers
OnRun
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” (9 calls:
DeliverEmailWithAttachmentViaExchange → DeleteServerFile,DeliverHTMLEmailViaExchange → DeleteServerFile,DeliverHTMLEmailViaExchange → ServerTempFileName, …) - Codeunit 5321 “Exchange Web Services Server” (6 calls:
InitializeExchangeWithToken → GetEndpoint,InitializeExchangeWithToken → InitializeWithCertificate,InitializeExchangeWithToken → InitializeWithOAuthToken, …) - Codeunit 4100 “Temp Blob” (4 calls:
PrepareDummyEmailBody → CreateOutStream,SendEmailWithAttachment → CreateInStream,SendEmailWithAttachment → HasValue, …) - Codeunit 5069 “Word Template Interactions” (3 calls:
ProcessDeliverySorter → IsWordDocumentExtension,Send → Merge,SendUsingExchange → Merge) - Codeunit 6300 “Azure AD Mgt.” (3 calls:
InitializeExchangeWithToken → GetAccessTokenAsSecretText,InitializeExchangeWithToken → GetO365Resource,InitializeExchangeWithToken → GetO365ResourceName) - Codeunit 260 “Document-Mailing” (2 calls:
SendEmailWithAttachment → EmailFile,SendHTMLEmail → EmailFile)
Called by
- Codeunit 5051 “SegManagement” (3 calls:
LogInteraction → Send,LogSegment → Send,UnwrapAttachmentCustomLayout → GenerateHTMLContent) - Codeunit 5069 “Word Template Interactions” (2 calls:
GetMailToAddress → InteractionEMail,GetMergeSourceText → InteractionEMail) - Table 5062 “Attachment” (2 calls:
ImportAttachmentFromClientFile → InsertAttachment,PreviewHTMLContent → LoadHTMLContent) - Table 5080 “To-do” (2 calls:
CreateTaskInteractLanguages → InsertAttachment,UpdateInteractionTemplate → InsertAttachment) - Table 5196 “To-do Interaction Language” (2 calls:
CopyFromAttachment → InsertAttachment,ImportAttachment → InsertAttachment) - Table 5076 “Segment Header” (1 call:
CreateSegInteractions → InsertAttachment) - Table 5077 “Segment Line” (1 call:
FinishSegLineWizard → GenerateHTMLContent) - Table 5103 “Interaction Tmpl. Language” (1 call:
CopyFromAttachment → InsertAttachment) - Table 5104 “Segment Interaction Language” (1 call:
CopyFromAttachment → InsertAttachment)
Deprecations
- procedure OnDeliverEmailWithAttachmentOnBeforeSendEmail: Pending 27.0 (#if not CLEAN27), “Parameter AttachmentFileFullName and EmailBodyFilePath will be removed”
- procedure OnDeliverHTMLEmailOnBeforeSendEmail: Pending 27.0 (#if not CLEAN27), “Parameter EmailBodyFilePath will be removed”
Source: AL metadata extracted from the code (names, ids, signatures, properties); no code bodies (D10).
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: "codeunit", object_name: "AttachmentManagement"), then bcatlas_get_procedure_body or bcatlas_get_neighbors on the returned id.