Codeunit 5052 AttachmentManagement

Base Application, Microsoft.CRM.Interaction

src/Layers/W1/BaseApp/CRM/Interaction/AttachmentManagement.Codeunit.al25 procedures and triggers, in source order. Copyright (c) Microsoft Corporation. MIT

InsertAttachment line 35

  1. 48writesTable 5062 Attachment Insert(true)
  2. 51raisesOnInsertAttachmentOnAfterAttachmentInsertedIsHandled
  3. 57callsTransferAttachment

Send line 63

  1. 72raisesOnBeforeSendIsHandled
  2. 75callsProcessDeliverySorter
  3. 78callsCodeunit 5069 Word Template Interactions Merge
  4. 81callsDeliverHTMLEmail
  5. 84callsDeliverEmailWithAttachment
  6. 86raisesOnAfterSend

SendUsingExchange line 92

  1. 101callsProcessDeliverySorter
  2. 104callsCodeunit 5069 Word Template Interactions Merge
  3. 106callsInitializeExchange
  4. 108callsDeliverHTMLEmailViaExchange
  5. 111callsDeliverEmailWithAttachmentViaExchange

TransferAttachment line 114, local

  1. 124callsTable 5062 Attachment ConstDiskFileName
  2. 125callsTable 5062 Attachment ExportAttachmentToServerFile
  3. 130writesTable 5062 Attachment Modify
  4. 140writesTable 5062 Attachment Modify
  5. 141callsTable 5062 Attachment ConstDiskFileName
  6. 141callsTable 5062 Attachment ConstDiskFileName
  7. 148callsTable 5062 Attachment ImportAttachmentFromServerFile
  8. 148callsTable 5062 Attachment ConstDiskFileName
  9. 151writesTable 5062 Attachment Modify

InteractionEMail line 155

  1. 161raisesOnBeforeInteractionEMailIsHandled

GenerateHTMLContent line 178

  1. 180callsTable 5062 Attachment IsHTML
  2. 183callsTable 5062 Attachment IsHTMLReady
  3. 186callsGenerateHTMLReadyAttachmentFromCustomLayout

LoadHTMLContent line 190

  1. 192callsTable 5062 Attachment IsHTML
  2. 195callsTable 5062 Attachment IsHTMLReady
  3. 196callsTable 5062 Attachment Read
  4. 198callsLoadHTMLContentFromCustomLayoutAttachment

LoadHTMLContentFromCustomLayoutAttachment line 201, local

  1. 207callsGenerateHTMLReadyContentFromCustomLayoutAttachment
  2. 212callsTable 5062 Attachment ImportAttachmentFromServerFile
  3. 214writesTable 5062 Attachment Insert
  4. 215callsTable 5062 Attachment Read
  5. 216callsTable 5062 Attachment RemoveAttachment

GenerateHTMLReadyAttachmentFromCustomLayout line 219, local

  1. 223callsGenerateHTMLReadyContentFromCustomLayoutAttachment
  2. 227writesTable 5062 Attachment Delete
  3. 229callsTable 5062 Attachment ImportAttachmentFromServerFile
  4. 231writesTable 5062 Attachment Insert

GenerateHTMLReadyContentFromCustomLayoutAttachment line 236, local

  1. 246callsCodeunit 419 File Management ServerTempFileName
  2. 250callsTable 5062 Attachment ReadHTMLCustomLayoutAttachment
  3. 252callsTable 9651 Report Layout Selection SetTempLayoutSelectedName
  4. 254callsTable 9651 Report Layout Selection SetTempLayoutSelected
  5. 255callsReport 5084 Email Merge InitializeRequest
  6. 256callsReport 5084 Email Merge SaveAsHtml
  7. 257callsTable 9651 Report Layout Selection ClearTempLayoutSelected

InitializeExchange line 260, local

  1. 266callsInitializeExchangeWithToken

InitializeExchangeWithToken line 271, local

  1. 277callsCodeunit 6300 Azure AD Mgt. GetAccessTokenAsSecretText
  2. 277callsCodeunit 6300 Azure AD Mgt. GetO365Resource
  3. 277callsCodeunit 6300 Azure AD Mgt. GetO365ResourceName
  4. 280callsCodeunit 5321 Exchange Web Services Server InitializeWithOAuthToken
  5. 280callsCodeunit 5321 Exchange Web Services Server GetEndpoint
  6. 286callsCodeunit 5321 Exchange Web Services Server InitializeWithCertificate
  7. 291callsCodeunit 5321 Exchange Web Services Server SetImpersonatedIdentity

DeliverHTMLEmail line 302, local

  1. 308raisesOnBeforeDeliverHTMLEmailIsHandled
  2. 317callsGetAttachment
  3. 319callsTable 5062 Attachment ExportAttachmentToTempBlob
  4. 321raisesOnDeliverHTMLEmailOnBeforeSendEmail
  5. 323raisesOnDeliverHTMLEmailOnBeforeSendEmail
  6. 326callsSendHTMLEmail
  7. 328callsSetDeliveryState

DeliverHTMLEmailViaExchange line 332, local

  1. 343callsGetAttachment
  2. 344callsCodeunit 419 File Management ServerTempFileName
  3. 345callsTable 5062 Attachment ExportAttachmentToServerFile
  4. 348callsSendHTMLEmailViaExchange
  5. 351callsCodeunit 419 File Management DeleteServerFile
  6. 353callsSetDeliveryState

DeliverEmailWithAttachment line 357, local

  1. 364raisesOnBeforeDeliverEmailWithAttachmentIsHandled
  2. 372callsGetAttachment
  3. 374callsTable 5062 Attachment ExportAttachmentToTempBlob
  4. 376callsPrepareDummyEmailBody
  5. 378raisesOnDeliverEmailWithAttachmentOnBeforeSendEmail
  6. 380raisesOnDeliverEmailWithAttachmentOnBeforeSendEmail
  7. 382callsSendEmailWithAttachment
  8. 384callsSetDeliveryState

DeliverEmailWithAttachmentViaExchange line 388, local

  1. 412callsPrepareServerAttachment
  2. 417callsSendEmailWithAttachmentViaExchange
  3. 420callsCodeunit 419 File Management DeleteServerFile
  4. 422callsSetDeliveryState

SendHTMLEmail line 429, local

  1. 439callsCodeunit 4100 Temp Blob CreateInStream
  2. 451callsCodeunit 260 Document-Mailing EmailFile
  3. 453callsInteractionEMail
  4. 455callsSetDeliveryState

SendHTMLEmailViaExchange line 458, local

  1. 463callsCodeunit 5321 Exchange Web Services Server SendEmailMessageWithAttachment
  2. 464callsInteractionEMail
  3. 465callsTable 5062 Attachment Read
  4. 465callsGetSenderSalesPersonEmail
  5. 467callsSetDeliveryState

SendEmailWithAttachment line 470, local

  1. 479callsCodeunit 4100 Temp Blob HasValue
  2. 480callsCodeunit 4100 Temp Blob CreateInStream
  3. 492callsCodeunit 260 Document-Mailing EmailFile
  4. 493callsGetAttachmentFileDefaultName
  5. 494callsInteractionEMail
  6. 496callsSetDeliveryState

SendEmailWithAttachmentViaExchange line 499, local

  1. 504callsCodeunit 5321 Exchange Web Services Server SendEmailMessageWithAttachment
  2. 505callsInteractionEMail
  3. 506callsGetSenderSalesPersonEmail
  4. 507callsSetDeliveryState

PrepareServerAttachment line 510, local

  1. 517callsGetAttachment
  2. 518callsCodeunit 419 File Management ServerTempFileName
  3. 519callsTable 5062 Attachment ExportAttachmentToServerFile
  4. 520callsCodeunit 419 File Management CombinePath
  5. 521callsCodeunit 419 File Management GetDirectoryName
  6. 522callsCodeunit 419 File Management CopyServerFile
  7. 523callsCodeunit 419 File Management DeleteServerFile

SetDeliveryState line 527, local

  1. 529raisesOnBeforeSetDeliveryState
  2. 534raisesOnSetDeliveryStateOnBeforeModifyInteractLogEntry
  3. 535writesTable 5065 Interaction Log Entry Modify

ProcessDeliverySorter line 539, local

  1. 549raisesOnBeforeProcessDeliverySorterIsHandled
  2. 572writesTable 5074 Delivery Sorter Insert
  3. 577raisesOnProcessDeliverySorterHtml
  4. 578writesTable 5074 Delivery Sorter Insert
  5. 580callsCodeunit 5069 Word Template Interactions IsWordDocumentExtension
  6. 583raisesOnProcessDeliverySorterWord
  7. 584writesTable 5074 Delivery Sorter Insert
  8. 588raisesOnProcessDeliverySorterOther
  9. 589writesTable 5074 Delivery Sorter Insert

PrepareDummyEmailBody line 607, local

  1. 612callsCodeunit 4100 Temp Blob CreateOutStream

ConvertCorrespondenceType line 624

  1. 634raisesOnConvertCorrespondenceTypeElseIsHandled