Codeunit 5051 "SegManagement"
Base Application · Microsoft.CRM.Segment
Across versions
- BC23present
- BC245 events added, 2 procedures added
- BC252 events added, 1 procedures added
- BC262 procedures changed
- BC27-30unchanged
Neighbourhood 38 connected objects and pages
Base Application · Microsoft.CRM.Segment · BC23-30 · source at ea08af5e · facts from BC29
Properties
| Property | Value |
|---|---|
| Permissions | tabledata “Interaction Log Entry” = rimd, tabledata “Interaction Template” = r, tabledata “Inter. Log Entry Comment Line” = rd, tabledata Contact = r |
Events published
OnAfterFindInteractTemplateCode(DocumentType: Enum "Interaction Log Entry Document Type"; InteractionTemplateSetup: Record "Interaction Template Setup"; var InteractionTemplateCode: Code[10])(integration)OnAfterFindInteractTmplSetupCaption(DocumentType: Integer; InteractionTemplateSetup: Record "Interaction Template Setup"; var InteractionTemplateCaption: Text[80])(integration)OnAfterInsertFollowUpSegment(var SegmentHeader: Record "Segment Header"; LoggedSegment: Record "Logged Segment")(integration)OnAfterHandleAttachmentFile(var SegmentLine: Record "Segment Line"; Attachment: Record Attachment; FileExported: Boolean)(integration)OnAfterLogInteraction(var SegmentLine: Record "Segment Line"; var InteractionLogEntry: Record "Interaction Log Entry"; Deliver: Boolean; Postponed: Boolean)(integration)OnAfterLogSegment(var TempDeliverySorter: Record "Delivery Sorter" temporary; var LoggedSegment: Record "Logged Segment"; SegmentHeader: Record "Segment Header"; SegmentNo: Code[20]; LastInteractLogEntryNo: Integer)(integration)OnBeforeAttachmentInsert(SegmentLine: Record "Segment Line"; var AttachmentTemp: Record Attachment; var Attachment: Record Attachment)(integration)OnBeforeAssignCorrespondenceTypeForEmail(var SegmentLine: Record "Segment Line"; Contact: Record Contact; ContactAltAddr: Record "Contact Alt. Address"; var IsHandled: Boolean)(integration)OnBeforeCampaignEntryNoModify(var SegmentLine: Record "Segment Line")(integration)OnBeforeCheckSalesperson(var SegmentLine: Record "Segment Line"; var IsHandled: Boolean)(integration)OnBeforeDeliverySorterInsert(var TempDeliverySorter: Record "Delivery Sorter" temporary; SegmentLine: Record "Segment Line")(integration)OnBeforeInteractLogEntryInsert(var InteractionLogEntry: Record "Interaction Log Entry"; SegmentLine: Record "Segment Line")(integration)OnBeforeLogInteraction(var SegmentLine: Record "Segment Line"; var Attachment: Record Attachment; var InterLogEntryCommentLine: Record "Inter. Log Entry Comment Line"; var Deliver: Boolean; var Postponed: Boolean)(integration)OnBeforeLogSegment(SegmentHeader: Record "Segment Header"; Deliver: Boolean; Followup: Boolean)(integration)OnBeforeLoggedSegmentInsert(var LoggedSegment: Record "Logged Segment")(integration)OnBeforeTempSegmentLineInsert(var TempSegmentLine: Record "Segment Line")(integration)OnBeforeTestFieldsFromLogInteraction(var SegmentLine: Record "Segment Line"; Deliver: Boolean; Postponed: Boolean; var IsHandled: Boolean)(integration)OnLogDocumentOnAfterFindInteractTmplCode(var InteractTmplCode: Code[10]; var Attachment: Record Attachment; DocumentType: Integer)(integration)OnLogDocumentOnCaseElse(AccountTableNo: Integer; AccountNo: Code[20]; var ContNo: Code[20])(integration)OnLogDocumentOnBeforeTempSegmentLineModify(var TempSegmentLine: Record "Segment Line" temporary; AccountTableNo: Integer; AccountNo: Code[20])(integration)OnLogInteractionOnBeforeInteractionLogEntryInsert(var InteractionLogEntry: Record "Interaction Log Entry"; Attachment: Record Attachment; SegmentLine: Record "Segment Line")(integration)OnLogInteractionOnBeforeInteractionLogEntryModify(var InteractionLogEntry: Record "Interaction Log Entry")(integration)OnLogInteractionOnAfterGetInteractLogEntryFromSegmentLine(var InteractionLogEntry: Record "Interaction Log Entry"; SegmentLine: Record "Segment Line"; Postponed: Boolean)(integration)OnLogInteractionOnBeforeInterLogEntryCommentLineInsert(var InterLogEntryCommentLine: Record "Inter. Log Entry Comment Line")(integration)OnLogInteractionOnBeforeTempDeliverySorterInsert(var DeliverySorter: Record "Delivery Sorter"; SegmentLine: Record "Segment Line"; InteractionLogEntry: Record "Interaction Log Entry")(integration)OnLogSegmentOnAfterCreateInteractionLogEntries(var SegmentHeader: Record "Segment Header"; var LoggedSegment: Record "Logged Segment")(integration)OnLogSegmentOnAfterCalcShowIsNotEmptyError(var LoggedSegment: Record "Logged Segment"; Deliver: Boolean; var ShowIsNotEmptyError: Boolean)(integration)OnLogSegmentOnAfterCalcShouldModifyAttachment(var Attachment: Record Attachment; SegmentLine: Record "Segment Line"; SegmentHeader: Record "Segment Header"; var ShouldModifyAttachment: Boolean)(integration)OnTestFieldsOnSegmentLineCorrespondenceTypeCaseElse(var SegmentLine: Record "Segment Line"; Contact: Record Contact)(integration)OnLogSegmentOnAfterLoggedSegmentInsert(var LoggedSegment: Record "Logged Segment"; SegmentHeader: Record "Segment Header")(integration)OnLogSegmentOnAfterInteractLogEntryInsert(var InteractionLogEntry: Record "Interaction Log Entry"; SegmentLine: Record "Segment Line")(integration)OnLogSegmentOnBeforeFollowupSegmentHeaderInsert(var SegmentHeader: Record "Segment Header"; LoggedSegment: Record "Logged Segment")(integration)OnLogDocumentOnBeforeTempSegmentLineInit(AccountTableNo: Integer; AccountNo: Code[20]; var ContNo: Code[20]; var Result: Integer; var IsHandled: Boolean)(integration)OnLogInteractionOnBeforeCheckAttachmentFileValue(SegmentLine: Record "Segment Line"; var AttachmentTemp: Record Attachment; var TempInterLogEntryCommentLine: Record "Inter. Log Entry Comment Line"; Deliver: Boolean; Postponed: Boolean; var NextInteractLogEntryNo: Integer; var IsHandled: Boolean)(integration)OnLogSegmentOnBeforeInitLoggedSegment(SegmentHeader: Record "Segment Header"; Deliver: Boolean; Followup: Boolean; var IsHandled: Boolean)(integration)OnBeforeCheckSegmentLine(var SegmentLine: Record "Segment Line"; Deliver: Boolean; var IsHandled: Boolean)+ BC24 (integration)OnLogDocumentOnBeforeTestTmplLanguage(InteractTmplCode: Code[10]; var IsHandled: Boolean)+ BC24 (integration)OnAfterCopyFieldsToCampaignEntry(var CampaignEntry: Record "Campaign Entry"; var SegmentLine: Record "Segment Line")+ BC24 (integration)OnLogInteractionOnAfterInterLogEntryCommentLineInsert(var InterLogEntryCommentLine: Record "Inter. Log Entry Comment Line"; SegmentLine: Record "Segment Line"; NextInteractLogEntryNo: Integer)+ BC24 (integration)OnLogInteractionOnBeforeInteractLogEntryGet(var NextInteractLogEntryNo: Integer; SegmentLine: Record "Segment Line"; Postponed: Boolean; var IsHandled: Boolean)+ BC24 (integration)OnLogInteractionOnBeforeWizSaveAttachment(SegmentLine: Record "Segment Line"; var AttachmentTemp: Record Attachment; var Attachment: Record Attachment)+ BC25 (integration)OnBeforeExportAttachmentFile(var SegmentLine: Record "Segment Line"; Attachment: Record Attachment; var AttachmentTemp: Record Attachment; var FileExported: Boolean; var IsHandled: Boolean)+ BC25 (integration)
Procedures
LogSegment(SegmentHeader: Record "Segment Header"; Deliver: Boolean; Followup: Boolean)Δ BC26LogInteraction(SegmentLine: Record "Segment Line"; var AttachmentTemp: Record Attachment; var TempInterLogEntryCommentLine: Record "Inter. Log Entry Comment Line"; Deliver: Boolean; Postponed: Boolean): IntegerΔ BC26LogDocument(DocumentType: Integer; DocumentNo: Code[20]; DocNoOccurrence: Integer; VersionNo: Integer; AccountTableNo: Integer; AccountNo: Code[20]; SalespersonCode: Code[20]; CampaignNo: Code[20]; Description: Text[100]; OpportunityNo: Code[20]): IntegerUnwrapAttachmentCustomLayout(var SegmentLine: Record "Segment Line")(internal)FindInteractionTemplateCode(DocumentType: Enum "Interaction Log Entry Document Type"): Code[10]CheckSegmentLine(var SegmentLine: Record "Segment Line"; Deliver: Boolean)CopyFieldsToCampaignEntry(var CampaignEntry: Record "Campaign Entry"; var SegmentLine: Record "Segment Line")CreateCampaignEntryOnSalesInvoicePosting(SalesInvoiceHeader: Record "Sales Invoice Header")InterLogEntryCommentLineInsert(var TempInterLogEntryCommentLine: Record "Inter. Log Entry Comment Line"; InteractionLogEntryNo: Integer)+ BC24
Plus 10 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 5052 “AttachmentManagement” (3 calls:
LogInteraction → Send,LogSegment → Send,UnwrapAttachmentCustomLayout → GenerateHTMLContent) - Codeunit 9500 “Sequence No. Mgt.” (2 calls:
LogInteraction → GetNextSeqNo,LogSegment → GetNextSeqNo) - Codeunit 419 “File Management” (1 call:
ExportAttachmentFile → DeleteServerFile)
Called by
- Codeunit 5679 “Create Interaction Log Entry” (4 calls:
CreateInteractionLogEntryForContact → LogDocument,CreateInteractionLogEntryForCustomer → LogDocument,CreateInteractionLogEntryForPurchaseHeader → LogDocument, …) - Table 5077 “Segment Line” (4 calls:
CreateSegLineInteractionFromContactForEmail → LogInteraction,FinishSegLineWizard → LogInteraction,LogSegLinePhoneCall → LogInteraction, …) - Report 118 “Finance Charge Memo” (2 calls:
InitLogInteraction → FindInteractionTemplateCode,OnPostReport → LogDocument) - Report 1303 “Standard Sales - Draft Invoice” (2 calls:
InitLogInteraction → FindInteractionTemplateCode,OnPostReport → LogDocument) - Report 1304 “Standard Sales - Quote” (2 calls:
InitLogInteraction → FindInteractionTemplateCode,OnPostReport → LogDocument) - Report 1305 “Standard Sales - Order Conf.” (2 calls:
InitLogInteraction → FindInteractionTemplateCode,OnPostReport → LogDocument) - Report 1306 “Standard Sales - Invoice” (2 calls:
LogInteractionTemplateExists → FindInteractionTemplateCode,OnPostReport → LogDocument) - Report 1307 “Standard Sales - Credit Memo” (2 calls:
InitLogInteraction → FindInteractionTemplateCode,OnPostReport → LogDocument) - Report 1308 “Standard Sales - Shipment” (2 calls:
InitLogInteraction → FindInteractionTemplateCode,OnPostReport → LogDocument) - Report 1309 “Standard Sales - Return Rcpt.” (2 calls:
InitLogInteraction → FindInteractionTemplateCode,OnPostReport → LogDocument) - Report 1316 “Standard Statement” (2 calls:
InitInteractionLog → FindInteractionTemplateCode,OnPostReport → LogDocument) - Report 1322 “Standard Purchase - Order” (2 calls:
InitLogInteraction → FindInteractionTemplateCode,OnPostReport → LogDocument) - Report 208 “Sales - Shipment” (2 calls:
InitLogInteraction → FindInteractionTemplateCode,OnPostReport → LogDocument) - Report 210 “Blanket Sales Order” (2 calls:
InitLogInteraction → FindInteractionTemplateCode,OnPostReport → LogDocument) - Report 404 “Purchase - Quote” (2 calls:
InitLogInteraction → FindInteractionTemplateCode,OnPostReport → LogDocument) - Report 405 “Order” (2 calls:
InitLogInteraction → FindInteractionTemplateCode,OnPostReport → LogDocument) - Report 406 “Purchase - Invoice” (2 calls:
InitLogInteraction → FindInteractionTemplateCode,OnPostReport → LogDocument) - Report 407 “Purchase - Credit Memo” (2 calls:
InitLogInteraction → FindInteractionTemplateCode,OnPostReport → LogDocument) - Report 408 “Purchase - Receipt” (2 calls:
InitLogInteraction → FindInteractionTemplateCode,OnPostReport → LogDocument) - Report 410 “Blanket Purchase Order” (2 calls:
InitLogInteraction → FindInteractionTemplateCode,OnPostReport → LogDocument) - Report 413 “Self Billing Invoice” (2 calls:
InitLogInteraction → FindInteractionTemplateCode,OnPostReport → LogDocument) - Report 6222 “EUDR Sales Invoice” (2 calls:
LogInteractionTemplateExists → FindInteractionTemplateCode,OnPostReport → LogDocument) - Report 6631 “Return Order Confirmation” (2 calls:
InitLogInteraction → FindInteractionTemplateCode,OnPostReport → LogDocument) - Report 6636 “Purchase - Return Shipment” (2 calls:
InitLogInteraction → FindInteractionTemplateCode,OnPostReport → LogDocument) - Report 6641 “Return Order” (2 calls:
InitLogInteraction → FindInteractionTemplateCode,OnPostReport → LogDocument) - Report 6646 “Sales - Return Receipt” (2 calls:
InitLogInteraction → FindInteractionTemplateCode,OnPostReport → LogDocument) - Codeunit 80 “Sales-Post” (1 call:
InsertInvoiceHeader → CreateCampaignEntryOnSalesInvoicePosting) - Report 116 “Statement” (1 call:
OnPostReport → LogDocument) - Report 117 “Reminder” (1 call:
OnPostReport → LogDocument) - Report 5055 “Contact - Cover Sheet” (1 call:
OnPostReport → LogDocument) - Report 5902 “Service Quote” (1 call:
OnPostReport → LogDocument) - Report 5970 “Service Contract” (1 call:
OnPostReport → LogDocument) - Report 5972 “Service Contract Quote” (1 call:
OnPostReport → LogDocument) - Table 5080 “To-do” (1 call:
LogTaskInteraction → LogInteraction) - Table 5901 “Service Item Line” (1 call:
OnInsert → LogDocument)
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: "SegManagement"), then bcatlas_get_procedure_body or bcatlas_get_neighbors on the returned id.