Table 5077 Segment Line

Base Application, Microsoft.CRM.Segment

src/Layers/W1/BaseApp/CRM/Segment/SegmentLine.Table.al60 procedures and triggers, in source order. Copyright (c) Microsoft Corporation. MIT

Contact No..OnValidate line 55, trigger

  1. 61callsInitLine
  2. 64callsFindLanguage
  3. 66callsTable 5050 Contact ActiveAltAddress
  4. 86callsSetDefaultSalesperson
  5. 105callsUniqueAttachmentExists
  6. 106writesTable 5077 Segment Line Modify
  7. 110writesTable 5104 Segment Interaction Language DeleteAll(true)
  8. 114callsFindLanguage
  9. 124callsSetCampaignTargetGroup

Campaign No..OnValidate line 133, trigger

  1. 136callsSetCampaignTargetGroup

Interaction Template Code.OnValidate line 156, trigger

  1. 164raisesOnValidateInteractionTemplateCodeIsHandled
  2. 169raisesOnValidateInteractionTemplateCodeOnBeforeGettingContactIsHandled
  3. 187writesTable 5077 Segment Line Modify
  4. 193writesTable 5104 Segment Interaction Language DeleteAll(true)
  5. 198callsTable 5076 Segment Header CreateSegInteractions
  6. 199callsFindLanguage
  7. 201raisesOnValidateInteractionTemplateCodeOnBeforeGetSegInteractTemplLanguageIsHandled
  8. 208callsFindLanguage
  9. 216callsFindLanguage
  10. 219raisesOnInteractionTemplValidateOnBeforeGetInteractTemplLanguageIsHandled
  11. 242callsSetCorrespondenceType
  12. 252writesTable 5077 Segment Line Modify

Campaign Target.OnValidate line 320, trigger

  1. 323callsSetCampaignTargetGroup

Language Code.OnLookup line 341, trigger

  1. 343callsLanguageCodeOnLookup

Language Code.OnValidate line 346, trigger

  1. 358raisesOnValidateLanguageCodeOnBeforeGetSegmentHeaderGlobalIsHandled
  2. 363callsUniqueAttachmentExists
  3. 381writesTable 5077 Segment Line Modify
  4. 384callsSetInteractionAttachment

Date.OnValidate line 398, trigger

  1. 401callsTable 5050 Contact ActiveAltAddress
  2. 402callsTable 5050 Contact ActiveAltAddress

OnDelete line 582, trigger

  1. 590callsCodeunit 7030 Campaign Target Group Mgt DeleteSegfromTargetGr
  2. 595writesTable 5104 Segment Interaction Language DeleteAll(true)
  3. 606raisesOnDeleteOnBeforeSegmentCriteriaLineDeleteAll
  4. 607writesTable 5097 Segment Criteria Line DeleteAll
  5. 609writesTable 5078 Segment History DeleteAll
  6. 617writesTable 5080 To-do ModifyAll

InitLine line 653

  1. 678raisesOnAfterInitLine

AttachmentText line 681

  1. 683callsAttachmentInherited

MaintainSegLineAttachment line 692

  1. 705callsCodeunit 9560 Document Sharing ShareEnabled
  2. 707callsCodeunit 8711 Telemetry LogMessage
  3. 711callsLoadTempAttachment
  4. 712callsMergeTemplate
  5. 717callsTable 5062 Attachment ImportAttachmentFromStream
  6. 719writesTable 5077 Segment Line Modify
  7. 729callsOpenSegLineAttachment
  8. 731callsCreateSegLineAttachment

CreateSegLineAttachment line 735

  1. 752callsTable 5104 Segment Interaction Language CreateAttachment

OpenSegLineAttachment line 755

  1. 771callsTable 5062 Attachment ShowAttachment
  2. 773callsAttachmentInherited
  3. 786writesTable 5104 Segment Interaction Language Insert(true)
  4. 789writesTable 5077 Segment Line Modify

ImportSegLineAttachment line 794

  1. 808writesTable 5104 Segment Interaction Language Insert(true)
  2. 810callsTable 5104 Segment Interaction Language ImportAttachment

ExportSegLineAttachment line 813

  1. 820callsUniqueAttachmentExists
  2. 823callsTable 5104 Segment Interaction Language ExportAttachment
  3. 827callsTable 5104 Segment Interaction Language ExportAttachment

RemoveAttachment line 830

  1. 838writesTable 5104 Segment Interaction Language Delete(true)

CreatePhoneCall line 844

  1. 850raisesOnBeforeCreatePhoneCallIsHandled
  2. 871raisesOnCreatePhoneCallOnBeforeStartWizard2
  3. 872callsTable 5077 Segment Line StartWizard2

FindLanguage line 875, local

  1. 883raisesOnBeforeFindLanguageIsHandled
  2. 888callsUniqueAttachmentExists

SetInteractionAttachment line 944

  1. 951raisesOnBeforeSetInteractionAttachmentIsHandled
  2. 960writesTable 5077 Segment Line Modify

SetCampaignTargetGroup line 975, local

  1. 980callsCodeunit 7030 Campaign Target Group Mgt DeleteSegfromTargetGr
  2. 986callsCodeunit 7030 Campaign Target Group Mgt AddSegLinetoTargetGr

CopyFromInteractLogEntry line 990

  1. 1026raisesOnAfterCopyFromInteractionLogEntry

CreateSegLineInteractionFromContact line 1029

  1. 1034raisesOnBeforeCreateSegLineInteractionFromContactIsHandled
  2. 1038writesTable 5077 Segment Line DeleteAll
  3. 1039callsInitializeSegmentLineFromContact
  4. 1041raisesOnCreateInteractionFromContactOnBeforeStartWizard
  5. 1043callsStartWizard

CreateInteractionFromSalesperson line 1046

  1. 1048writesTable 5077 Segment Line DeleteAll
  2. 1050validatesTable 5077 Segment Line Salesperson Code
  3. 1053raisesOnCreateInteractionFromSalespersonOnBeforeStartWizard
  4. 1055callsStartWizard

CreateInteractionFromInteractLogEntry line 1058

  1. 1066raisesOnBeforeCreateInteractionFromInteractLogEntry
  2. 1069callsCreateFromTask
  3. 1073validatesTable 5077 Segment Line Contact No.
  4. 1077validatesTable 5077 Segment Line Contact No.
  5. 1094raisesOnCreateInteractionFromInteractLogEntryOnBeforeStartWizard
  6. 1096callsStartWizard

CreateInteractionFromTask line 1099

  1. 1102callsCreateFromTask
  2. 1105raisesOnCreateInteractionFromTaskOnBeforeStartWizard
  3. 1107callsStartWizard

CreateInteractionFromOpp line 1110

  1. 1118callsTable 5050 Contact CheckIfPrivacyBlockedGeneric
  2. 1119validatesTable 5077 Segment Line Contact No.
  3. 1123callsTable 5050 Contact CheckIfPrivacyBlockedGeneric
  4. 1124validatesTable 5077 Segment Line Contact No.
  5. 1128validatesTable 5077 Segment Line Salesperson Code
  6. 1132validatesTable 5077 Segment Line Campaign No.
  7. 1135validatesTable 5077 Segment Line Opportunity No.
  8. 1138raisesOnCreateInteractionFromOppOnBeforeStartWizard
  9. 1140callsStartWizard

CreateOpportunity line 1143

  1. 1147callsTable 5092 Opportunity CreateFromSegmentLine

CreateFromTask line 1151, local

  1. 1154validatesTable 5077 Segment Line Contact No.
  2. 1159raisesOnAfterCreateFromTask

StartWizard line 1172

  1. 1177raisesOnBeforeStartWizardIsHandled
  2. 1181callsUpdateDefaults
  3. 1182writesTable 5077 Segment Line Insert
  4. 1184callsRunCreateInteraction

RunCreateInteraction line 1187, local

  1. 1192raisesOnBeforeRunCreateInteractionIsHandled
  2. 1196runsPage 5077 Create Interaction
  3. 1198callsSendCreateOpportunityNotification

SendCreateOpportunityNotification line 1201

  1. 1207raisesOnBeforeSendCreateOpportunityNotificationIsHandled
  2. 1211callsCodeunit 783 Relationship Performance Mgt. SendCreateOpportunityNotification

CheckStatus line 1214

  1. 1221raisesOnBeforeCheckStatusIsHandled
  2. 1228callsErrorMessage
  3. 1230callsErrorMessage
  4. 1232callsErrorMessage
  5. 1234callsErrorMessage
  6. 1253raisesOnAfterCheckStatus

FinishSegLineWizard line 1256

  1. 1270raisesOnBeforeFinishSegLineWizardIsHandled
  2. 1272callsGetFinishInteractionFlag
  3. 1275callsCheckStatus
  4. 1278raisesOnFinishSegLineWizardOnBeforeAssignEmptyOpportunityStep
  5. 1285callsProcessPostponedAttachment
  6. 1287raisesOnFinishWizardOnAfterSetSend
  7. 1289callsTable 5062 Attachment ReadHTMLCustomLayoutAttachment
  8. 1290callsCodeunit 5052 AttachmentManagement GenerateHTMLContent
  9. 1293raisesOnFinishSegLineWizardBeforeLogInteractionIsHandled
  10. 1295callsCodeunit 5051 SegManagement LogInteraction
  11. 1304callsLoadTempAttachment
  12. 1306callsTable 5062 Attachment WriteHTMLCustomLayoutAttachment
  13. 1308callsTable 5062 Attachment WriteHTMLCustomLayoutAttachment
  14. 1315raisesOnAfterFinishWizard

GetFinishInteractionFlag line 1323, local

  1. 1328raisesOnBeforeGetFinishInteractionFlagIsHandled

HandleTrigger line 1350, internal

  1. 1359raisesOnBeforeHandleTriggerIsHandled
  2. 1368callsLoadTempAttachment
  3. 1379callsLoadTempAttachment
  4. 1380callsCodeunit 9560 Document Sharing ShareEnabled
  5. 1381callsCodeunit 8711 Telemetry LogMessage
  6. 1383callsTable 5062 Attachment OpenAttachment
  7. 1385callsMergeTemplate
  8. 1387callsCodeunit 9560 Document Sharing ShareEnabled
  9. 1389callsCodeunit 8711 Telemetry LogMessage
  10. 1393callsMergeTemplate
  11. 1400callsCodeunit 419 File Management BLOBImport
  12. 1404writesTable 5062 Attachment DeleteAll
  13. 1405callsTable 5062 Attachment SetAttachmentFileFromBlob
  14. 1406callsCodeunit 419 File Management GetExtension
  15. 1407writesTable 5062 Attachment Insert
  16. 1415callsMergeTemplate
  17. 1419raisesOnHandleTriggerCaseElse

MergeTemplate line 1423, local

  1. 1430callsCreateInteractionMergeData
  2. 1431callsLoadTemplateAttachment
  3. 1438callsCodeunit 9987 Word Template Merge
  4. 1440callsCodeunit 9987 Word Template GetDocument
  5. 1441writesTable 5062 Attachment DeleteAll
  6. 1442callsTable 5062 Attachment SetAttachmentFileFromStream
  7. 1444writesTable 5062 Attachment Insert

CreateInteractionMergeData line 1447, local

  1. 1452raisesOnCreateInteractionMergeDataOnBeforeTempInteractionMergeDataInsert
  2. 1453writesTable 5106 Interaction Merge Data Insert

LoadTemplateAttachment line 1456, local

  1. 1464callsCodeunit 9987 Word Template Load
  2. 1472callsCodeunit 9987 Word Template Load
  3. 1474callsCodeunit 9987 Word Template Load
  4. 1476callsCodeunit 9987 Word Template Load

LoadTempAttachment line 1480, local

  1. 1486writesTable 5062 Attachment DeleteAll
  2. 1487callsTable 5062 Attachment WizEmbeddAttachment
  3. 1490callsTable 5062 Attachment IsHTML
  4. 1492raisesOnLoadTempAttachmentOnBeforeInsertTempAttachment
  5. 1493writesTable 5062 Attachment Insert

SetTempAttachment line 1496

  1. 1498writesTable 5062 Attachment DeleteAll
  2. 1499callsTable 5062 Attachment SetAttachmentFileFromStream
  3. 1501writesTable 5062 Attachment Insert

LoadContentBodyTextFromCustomLayoutAttachment line 1504

  1. 1509callsTable 5062 Attachment ReadHTMLCustomLayoutAttachment

UpdateContentBodyTextInCustomLayoutAttachment line 1513

  1. 1520callsTable 5062 Attachment ReadHTMLCustomLayoutAttachment
  2. 1522callsTable 5062 Attachment WriteHTMLCustomLayoutAttachment
  3. 1524callsTable 5062 Attachment WriteHTMLCustomLayoutAttachment

ProcessPostponedAttachment line 1527

  1. 1530callsLoadTempAttachment
  2. 1535callsTable 5062 Attachment RemoveAttachment

LoadSegLineAttachment line 1538

  1. 1547writesTable 5123 Inter. Log Entry Comment Line Insert
  2. 1552callsLoadTempAttachment
  3. 1554writesTable 5062 Attachment DeleteAll

MakePhoneCallFromContact line 1559

  1. 1570validatesTable 5077 Segment Line Contact No.
  2. 1572validatesTable 5077 Segment Line Date
  3. 1577callsStartWizard2

StartWizard2 line 1580

  1. 1585raisesOnBeforeStartWizard2
  2. 1599callsGetContactName
  3. 1601raisesOnStartWizard2OnBeforeInsert
  4. 1602writesTable 5077 Segment Line Insert
  5. 1603validatesTable 5077 Segment Line Interaction Template Code
  6. 1604runsPage 5147 Make Phone Call

CheckPhoneCallStatus line 1607

  1. 1613callsErrorMessage
  2. 1615callsErrorMessage
  3. 1617callsErrorMessage

LogSegLinePhoneCall line 1621

  1. 1629callsCodeunit 5051 SegManagement LogInteraction
  2. 1635writesTable 5077 Segment Line Modify

ShowComment line 1639

  1. 1644raisesOnBeforeShowCommentIsHandled
  2. 1648runsPage 5187 Inter. Log Entry Comment Sheet

SetComments line 1651

  1. 1653writesTable 5123 Inter. Log Entry Comment Line DeleteAll
  2. 1658writesTable 5123 Inter. Log Entry Comment Line Insert

SetCorrespondenceType line 1662, local

  1. 1667raisesOnBeforeSetCorrespondenceTypeIsHandled

IsHTMLAttachment line 1688

  1. 1692callsTable 5062 Attachment IsHTML

PreviewSegLineHTMLContent line 1695

  1. 1698callsTable 5062 Attachment ShowAttachment

LanguageCodeOnLookup line 1701

  1. 1710callsUniqueAttachmentExists
  2. 1723writesTable 5077 Segment Line Modify
  3. 1730writesTable 5077 Segment Line Modify
  4. 1732callsSetInteractionAttachment

ExportODataFields line 1770

  1. 1783callsPage 6713 OData Fields Export SetExportData

ProcessInterLogEntryComments line 1787

  1. 1791callsCodeunit 5051 SegManagement InterLogEntryCommentLineInsert

SetDefaultSalesperson line 1794, local

  1. 1802validatesTable 5077 Segment Line Salesperson Code

InitializeSegmentLineFromContact line 1806, local

  1. 1812validatesTable 5077 Segment Line Contact No.
  2. 1814callsFindSalespersonByUserEmail

UpdateDefaults line 1819, local

  1. 1827callsGetContactName
  2. 1830validatesTable 5077 Segment Line Date

CreateSegLineInteractionFromContactForEmail line 1834, internal

  1. 1838writesTable 5077 Segment Line DeleteAll
  2. 1839callsInitializeSegmentLineFromContact
  3. 1840callsUpdateDefaults
  4. 1841writesTable 5077 Segment Line Insert
  5. 1843validatesTable 5077 Segment Line Interaction Template Code
  6. 1843callsGetInteractionTemplateCodeForEmail
  7. 1844callsCodeunit 5051 SegManagement LogInteraction