Share via


Table "Segment Line"

ID 5077
Namespace: Microsoft.CRM.Segment

Properties

Name Value
Caption Segment Line
DataClassification CustomerContent
Permissions tabledata Attachment = rd, tabledata "Segment Line" = rim, tabledata "Segment History" = rd, tabledata "Segment Criteria Line" = rd, tabledata "Segment Interaction Language" = rid, tabledata Contact = r, tabledata Customer = r

Fields

Name Type Description
"Segment No." Code[20]
"Line No." Integer
"Contact No." Code[20]
"Campaign No." Code[20]
"Salesperson Code" Code[20]
"Correspondence Type" Enum Microsoft.CRM.Interaction."Correspondence Type"
"Interaction Template Code" Code[10]
"Cost (LCY)" Decimal
"Duration (Min.)" Decimal
"Attachment No." Integer
"Campaign Response" Boolean
"Contact Name" Text[100]
"Information Flow" Option
"Initiated By" Option
"Contact Alt. Address Code" Code[10]
Evaluation Enum Microsoft.CRM.Interaction."Interaction Evaluation"
"Campaign Target" Boolean
"Contact Company Name" Text[100]
"Language Code" Code[10]
Description Text[100]
Date Date
"Time of Interaction" Time
"Attempt Failed" Boolean
"To-do No." Code[20]
"Contact Company No." Code[20]
"Campaign Entry No." Integer
"Interaction Group Code" Code[10]
"Document Type" Enum Microsoft.CRM.Interaction."Interaction Log Entry Document Type"
"Document No." Code[20]
"Send Word Doc. As Attmt." Boolean
"Contact Via" Text[80]
"Version No." Integer
"Doc. No. Occurrence" Integer
Subject Text[100]
"Opportunity No." Code[20]
"Contact Phone No." Text[30]
"Contact Mobile Phone No." Text[30]
"Contact Email" Text[80]
"Word Template Code" Code[30]
Merged Boolean
"Wizard Step" Enum Microsoft.CRM.Segment."Segment Line Wizard Step"
"Wizard Contact Name" Text[100]
"Opportunity Description" Text[100]
"Campaign Description" Text[100]
"Interaction Successful" Boolean
"Dial Contact" Boolean
"Mail Contact" Boolean
SystemId Guid
SystemCreatedAt DateTime
SystemCreatedBy Guid
SystemModifiedAt DateTime
SystemModifiedBy Guid
SystemRowVersion BigInteger

Methods

InitLine

procedure InitLine()

AttachmentText

procedure AttachmentText(): Text[30]

Returns

Type Description
Text[30]

MaintainSegLineAttachment

procedure MaintainSegLineAttachment()

CreateSegLineAttachment

procedure CreateSegLineAttachment()

OpenSegLineAttachment

procedure OpenSegLineAttachment()

ImportSegLineAttachment

procedure ImportSegLineAttachment()

ExportSegLineAttachment

procedure ExportSegLineAttachment()

RemoveAttachment

procedure RemoveAttachment()

CreatePhoneCall

procedure CreatePhoneCall()

AttachmentInherited

procedure AttachmentInherited(): Boolean

Returns

Type Description
Boolean

SetInteractionAttachment

procedure SetInteractionAttachment()

CopyFromInteractLogEntry

procedure CopyFromInteractLogEntry(var InteractionLogEntry: Record "Interaction Log Entry")

Parameters

Name Type Description
InteractionLogEntry Table Microsoft.CRM.Interaction."Interaction Log Entry"

CreateSegLineInteractionFromContact

procedure CreateSegLineInteractionFromContact(var Contact: Record Contact)

Parameters

Name Type Description
Contact Table Microsoft.CRM.Contact.Contact

CreateInteractionFromSalesperson

procedure CreateInteractionFromSalesperson(var SalespersonPurchaser: Record "Salesperson/Purchaser")

Parameters

Name Type Description
SalespersonPurchaser Table Microsoft.CRM.Team."Salesperson/Purchaser"

CreateInteractionFromInteractLogEntry

procedure CreateInteractionFromInteractLogEntry(var InteractionLogEntry: Record "Interaction Log Entry")

Parameters

Name Type Description
InteractionLogEntry Table Microsoft.CRM.Interaction."Interaction Log Entry"

CreateInteractionFromTask

procedure CreateInteractionFromTask(var Task: Record "To-do")

Parameters

Name Type Description
Task Table Microsoft.CRM.Task."To-do"

CreateInteractionFromOpp

procedure CreateInteractionFromOpp(var Opportunity: Record Opportunity)

Parameters

Name Type Description
Opportunity Table Microsoft.CRM.Opportunity.Opportunity

CreateOpportunity

procedure CreateOpportunity(): Code[20]

Returns

Type Description
Code[20]

StartWizard

procedure StartWizard()

SendCreateOpportunityNotification

procedure SendCreateOpportunityNotification()

CheckStatus

procedure CheckStatus()

FinishSegLineWizard

procedure FinishSegLineWizard(IsFinish: Boolean)

Parameters

Name Type Description
IsFinish Boolean

ValidateCorrespondenceType

procedure ValidateCorrespondenceType()

SetTempAttachment

procedure SetTempAttachment(var InStream: InStream, FileExtension: Text)

Parameters

Name Type Description
InStream InStream
FileExtension Text

LoadContentBodyTextFromCustomLayoutAttachment

procedure LoadContentBodyTextFromCustomLayoutAttachment(): Text

Returns

Type Description
Text

UpdateContentBodyTextInCustomLayoutAttachment

procedure UpdateContentBodyTextInCustomLayoutAttachment(NewContentBodyText: Text)

Parameters

Name Type Description
NewContentBodyText Text

ProcessPostponedAttachment

procedure ProcessPostponedAttachment()

LoadSegLineAttachment

procedure LoadSegLineAttachment(ForceReload: Boolean)

Parameters

Name Type Description
ForceReload Boolean

MakePhoneCallFromContact

procedure MakePhoneCallFromContact(var Cont: Record Contact, Task: Record "To-do", TableNo: Integer, PhoneNo: Text[30], ContAltAddrCode: Code[10])

Parameters

Name Type Description
Cont Table Microsoft.CRM.Contact.Contact
Task Table Microsoft.CRM.Task."To-do"
TableNo Integer
PhoneNo Text[30]
ContAltAddrCode Code[10]

StartWizard2

procedure StartWizard2()

CheckPhoneCallStatus

procedure CheckPhoneCallStatus()

LogSegLinePhoneCall

procedure LogSegLinePhoneCall()

ShowComment

procedure ShowComment()

SetComments

procedure SetComments(var InterLogEntryCommentLineLocal: Record "Inter. Log Entry Comment Line")

Parameters

Name Type Description
InterLogEntryCommentLineLocal Table Microsoft.CRM.Interaction."Inter. Log Entry Comment Line"

IsHTMLAttachment

procedure IsHTMLAttachment(): Boolean

Returns

Type Description
Boolean

PreviewSegLineHTMLContent

procedure PreviewSegLineHTMLContent()

LanguageCodeOnLookup

procedure LanguageCodeOnLookup()

FilterContactCompanyOpportunities

procedure FilterContactCompanyOpportunities(var Opportunity: Record Opportunity)

Parameters

Name Type Description
Opportunity Table Microsoft.CRM.Opportunity.Opportunity

ExportODataFields

procedure ExportODataFields()

ProcessInterLogEntryComments

procedure ProcessInterLogEntryComments(InterLogEntryNo: Integer)

Parameters

Name Type Description
InterLogEntryNo Integer

Events

OnAfterCheckStatus

[IntegrationEvent(False,False)]
local procedure OnAfterCheckStatus(var SegmentLine: Record "Segment Line")

Parameters

Name Type Description
SegmentLine Table Microsoft.CRM.Segment."Segment Line"

OnAfterCopyFromInteractionLogEntry

[IntegrationEvent(False,False)]
local procedure OnAfterCopyFromInteractionLogEntry(var SegmentLine: Record "Segment Line", InteractionLogEntry: Record "Interaction Log Entry")

Parameters

Name Type Description
SegmentLine Table Microsoft.CRM.Segment."Segment Line"
InteractionLogEntry Table Microsoft.CRM.Interaction."Interaction Log Entry"

OnAfterCreateFromTask

[IntegrationEvent(False,False)]
local procedure OnAfterCreateFromTask(var SegmentLine: Record "Segment Line", Task: Record "To-do")

Parameters

Name Type Description
SegmentLine Table Microsoft.CRM.Segment."Segment Line"
Task Table Microsoft.CRM.Task."To-do"

OnAfterInitLine

[IntegrationEvent(False,False)]
local procedure OnAfterInitLine(var SegmentLine: Record "Segment Line", SegmentHeader: Record "Segment Header")

Parameters

Name Type Description
SegmentLine Table Microsoft.CRM.Segment."Segment Line"
SegmentHeader Table Microsoft.CRM.Segment."Segment Header"

OnAfterFinishWizard

[IntegrationEvent(False,False)]
local procedure OnAfterFinishWizard(var SegmentLine: Record "Segment Line", InteractionLogEntry: Record "Interaction Log Entry", IsFinish: Boolean, Flag: Boolean)

Parameters

Name Type Description
SegmentLine Table Microsoft.CRM.Segment."Segment Line"
InteractionLogEntry Table Microsoft.CRM.Interaction."Interaction Log Entry"
IsFinish Boolean
Flag Boolean

OnBeforeGetFinishInteractionFlag

[IntegrationEvent(False,False)]
local procedure OnBeforeGetFinishInteractionFlag(var SegmentLine: Record "Segment Line", IsFinish: Boolean, var Flag: Boolean, var IsHandled: Boolean)

Parameters

Name Type Description
SegmentLine Table Microsoft.CRM.Segment."Segment Line"
IsFinish Boolean
Flag Boolean
IsHandled Boolean

OnBeforeCheckStatus

[IntegrationEvent(False,False)]
local procedure OnBeforeCheckStatus(var SegmentLine: Record "Segment Line", var IsHandled: Boolean, var AttachmentTmp: Record Attachment temporary)

Parameters

Name Type Description
SegmentLine Table Microsoft.CRM.Segment."Segment Line"
IsHandled Boolean
AttachmentTmp Table Microsoft.CRM.Interaction.Attachment

OnBeforeCreatePhoneCall

[IntegrationEvent(False,False)]
local procedure OnBeforeCreatePhoneCall(var SegmentLine: Record "Segment Line", var IsHandled: Boolean)

Parameters

Name Type Description
SegmentLine Table Microsoft.CRM.Segment."Segment Line"
IsHandled Boolean

OnBeforeFinishSegLineWizard

[IntegrationEvent(False,False)]
local procedure OnBeforeFinishSegLineWizard(var SegmentLine: Record "Segment Line", IsFinish: Boolean, var TempAttachment: Record Attachment temporary, var TempInterLogEntryCommentLine: Record "Inter. Log Entry Comment Line" temporary, var IsHandled: Boolean)

Parameters

Name Type Description
SegmentLine Table Microsoft.CRM.Segment."Segment Line"
IsFinish Boolean
TempAttachment Table Microsoft.CRM.Interaction.Attachment
TempInterLogEntryCommentLine Table Microsoft.CRM.Interaction."Inter. Log Entry Comment Line"
IsHandled Boolean

OnBeforeSendCreateOpportunityNotification

[IntegrationEvent(False,False)]
local procedure OnBeforeSendCreateOpportunityNotification(var SegmentLine: Record "Segment Line", var IsHandled: Boolean)

Parameters

Name Type Description
SegmentLine Table Microsoft.CRM.Segment."Segment Line"
IsHandled Boolean

OnBeforeSetCorrespondenceType

[IntegrationEvent(False,False)]
local procedure OnBeforeSetCorrespondenceType(var SegmentLine: Record "Segment Line", var xSegmentLine: Record "Segment Line", var IsHandled: Boolean)

Parameters

Name Type Description
SegmentLine Table Microsoft.CRM.Segment."Segment Line"
xSegmentLine Table Microsoft.CRM.Segment."Segment Line"
IsHandled Boolean

OnBeforeStartWizard

[IntegrationEvent(False,False)]
local procedure OnBeforeStartWizard(var SegmentLine: Record "Segment Line", var IsHandled: Boolean)

Parameters

Name Type Description
SegmentLine Table Microsoft.CRM.Segment."Segment Line"
IsHandled Boolean

OnBeforeRunCreateInteraction

[IntegrationEvent(False,False)]
local procedure OnBeforeRunCreateInteraction(var SegmentLine: Record "Segment Line", var IsHandled: Boolean)

Parameters

Name Type Description
SegmentLine Table Microsoft.CRM.Segment."Segment Line"
IsHandled Boolean

OnBeforeStartWizard2

[IntegrationEvent(False,False)]
local procedure OnBeforeStartWizard2(var SegmentLine: Record "Segment Line")

Parameters

Name Type Description
SegmentLine Table Microsoft.CRM.Segment."Segment Line"

OnCreateInteractionFromContactOnBeforeStartWizard

[IntegrationEvent(False,False)]
local procedure OnCreateInteractionFromContactOnBeforeStartWizard(var SegmentLine: Record "Segment Line", var Contact: Record Contact)

Parameters

Name Type Description
SegmentLine Table Microsoft.CRM.Segment."Segment Line"
Contact Table Microsoft.CRM.Contact.Contact

OnCreateInteractionFromSalespersonOnBeforeStartWizard

[IntegrationEvent(False,False)]
local procedure OnCreateInteractionFromSalespersonOnBeforeStartWizard(var SegmentLine: Record "Segment Line", SalespersonPurchaser: Record "Salesperson/Purchaser")

Parameters

Name Type Description
SegmentLine Table Microsoft.CRM.Segment."Segment Line"
SalespersonPurchaser Table Microsoft.CRM.Team."Salesperson/Purchaser"

OnCreateInteractionFromInteractLogEntryOnBeforeStartWizard

[IntegrationEvent(False,False)]
local procedure OnCreateInteractionFromInteractLogEntryOnBeforeStartWizard(var SegmentLine: Record "Segment Line", var InteractionLogEntry: Record "Interaction Log Entry")

Parameters

Name Type Description
SegmentLine Table Microsoft.CRM.Segment."Segment Line"
InteractionLogEntry Table Microsoft.CRM.Interaction."Interaction Log Entry"

OnCreateInteractionFromTaskOnBeforeStartWizard

[IntegrationEvent(False,False)]
local procedure OnCreateInteractionFromTaskOnBeforeStartWizard(var SegmentLine: Record "Segment Line", Task: Record "To-do")

Parameters

Name Type Description
SegmentLine Table Microsoft.CRM.Segment."Segment Line"
Task Table Microsoft.CRM.Task."To-do"

OnCreateInteractionFromOppOnBeforeStartWizard

[IntegrationEvent(False,False)]
local procedure OnCreateInteractionFromOppOnBeforeStartWizard(var SegmentLine: Record "Segment Line", Opportunity: Record Opportunity)

Parameters

Name Type Description
SegmentLine Table Microsoft.CRM.Segment."Segment Line"
Opportunity Table Microsoft.CRM.Opportunity.Opportunity

OnCreatePhoneCallOnBeforeStartWizard2

[IntegrationEvent(False,False)]
local procedure OnCreatePhoneCallOnBeforeStartWizard2(var TempSegmentLine: Record "Segment Line" temporary, SegmentLine: Record "Segment Line")

Parameters

Name Type Description
TempSegmentLine Table Microsoft.CRM.Segment."Segment Line"
SegmentLine Table Microsoft.CRM.Segment."Segment Line"

OnDeleteOnBeforeSegmentCriteriaLineDeleteAll

[IntegrationEvent(False,False)]
local procedure OnDeleteOnBeforeSegmentCriteriaLineDeleteAll(SegmentLine: Record "Segment Line", SegmentCriteriaLine: Record "Segment Criteria Line")

Parameters

Name Type Description
SegmentLine Table Microsoft.CRM.Segment."Segment Line"
SegmentCriteriaLine Table Microsoft.CRM.Segment."Segment Criteria Line"

OnFinishWizardOnAfterSetSend

[IntegrationEvent(False,False)]
local procedure OnFinishWizardOnAfterSetSend(var SegmentLine: Record "Segment Line", var Send: Boolean)

Parameters

Name Type Description
SegmentLine Table Microsoft.CRM.Segment."Segment Line"
Send Boolean

OnHandleTriggerCaseElse

[IntegrationEvent(False,False)]
local procedure OnHandleTriggerCaseElse(SegmentLine: Record "Segment Line", InteractionTemplate: Record "Interaction Template")

Parameters

Name Type Description
SegmentLine Table Microsoft.CRM.Segment."Segment Line"
InteractionTemplate Table Microsoft.CRM.Interaction."Interaction Template"

OnValidateInteractionTemplateCode

[IntegrationEvent(False,False)]
local procedure OnValidateInteractionTemplateCode(var SegmentLine: Record "Segment Line", var Cont: Record Contact, var IsHandled: Boolean)

Parameters

Name Type Description
SegmentLine Table Microsoft.CRM.Segment."Segment Line"
Cont Table Microsoft.CRM.Contact.Contact
IsHandled Boolean

OnInteractionTemplValidateOnBeforeGetInteractTemplLanguage

[IntegrationEvent(False,False)]
local procedure OnInteractionTemplValidateOnBeforeGetInteractTemplLanguage(var SegmentLine: Record "Segment Line", var IsHandled: Boolean)

Parameters

Name Type Description
SegmentLine Table Microsoft.CRM.Segment."Segment Line"
IsHandled Boolean

OnBeforeShowComment

[IntegrationEvent(False,False)]
local procedure OnBeforeShowComment(var SegmentLine: Record "Segment Line", var TempInterLogEntryCommentLine: Record "Inter. Log Entry Comment Line" temporary, var IsHandled: Boolean)

Parameters

Name Type Description
SegmentLine Table Microsoft.CRM.Segment."Segment Line"
TempInterLogEntryCommentLine Table Microsoft.CRM.Interaction."Inter. Log Entry Comment Line"
IsHandled Boolean

OnBeforeCreateSegLineInteractionFromContact

[IntegrationEvent(False,False)]
local procedure OnBeforeCreateSegLineInteractionFromContact(var SegmentLine: Record "Segment Line", var Cont: Record Contact, var IsHandled: Boolean)

Parameters

Name Type Description
SegmentLine Table Microsoft.CRM.Segment."Segment Line"
Cont Table Microsoft.CRM.Contact.Contact
IsHandled Boolean

OnBeforeCreateInteractionFromInteractLogEntry

[IntegrationEvent(False,False)]
local procedure OnBeforeCreateInteractionFromInteractLogEntry(var SegmentLine: Record "Segment Line", var Salesperson: Record "Salesperson/Purchaser")

Parameters

Name Type Description
SegmentLine Table Microsoft.CRM.Segment."Segment Line"
Salesperson Table Microsoft.CRM.Team."Salesperson/Purchaser"

OnFinishSegLineWizardOnBeforeAssignEmptyOpportunityStep

[IntegrationEvent(False,False)]
local procedure OnFinishSegLineWizardOnBeforeAssignEmptyOpportunityStep(var SegmentLine: Record "Segment Line", var ShouldAssignStep: Boolean)

Parameters

Name Type Description
SegmentLine Table Microsoft.CRM.Segment."Segment Line"
ShouldAssignStep Boolean

OnFinishSegLineWizardBeforeLogInteraction

[IntegrationEvent(False,False)]
local procedure OnFinishSegLineWizardBeforeLogInteraction(var SegmentLine: Record "Segment Line", var IsHandled: Boolean)

Parameters

Name Type Description
SegmentLine Table Microsoft.CRM.Segment."Segment Line"
IsHandled Boolean

OnValidateInteractionTemplateCodeOnBeforeGetSegInteractTemplLanguage

[IntegrationEvent(False,False)]
local procedure OnValidateInteractionTemplateCodeOnBeforeGetSegInteractTemplLanguage(var SegmentLine: Record "Segment Line", var IsHandled: Boolean)

Parameters

Name Type Description
SegmentLine Table Microsoft.CRM.Segment."Segment Line"
IsHandled Boolean

OnValidateLanguageCodeOnBeforeGetSegmentHeaderGlobal

[IntegrationEvent(False,False)]
local procedure OnValidateLanguageCodeOnBeforeGetSegmentHeaderGlobal(var SegmentLine: Record "Segment Line", var IsHandled: Boolean)

Parameters

Name Type Description
SegmentLine Table Microsoft.CRM.Segment."Segment Line"
IsHandled Boolean

OnBeforeFindLanguage

[IntegrationEvent(False,False)]
local procedure OnBeforeFindLanguage(var SegmentLine: Record "Segment Line", InteractTmplCode: Code[10], ContactLanguageCode: Code[10], var Language: Code[10], var IsHandled: Boolean)

Parameters

Name Type Description
SegmentLine Table Microsoft.CRM.Segment."Segment Line"
InteractTmplCode Code[10]
ContactLanguageCode Code[10]
Language Code[10]
IsHandled Boolean

OnBeforeSetInteractionAttachment

[IntegrationEvent(False,False)]
local procedure OnBeforeSetInteractionAttachment(var SegmentLine: Record "Segment Line", var IsHandled: Boolean)

Parameters

Name Type Description
SegmentLine Table Microsoft.CRM.Segment."Segment Line"
IsHandled Boolean

OnCreateInteractionMergeDataOnBeforeTempInteractionMergeDataInsert

[IntegrationEvent(False,False)]
local procedure OnCreateInteractionMergeDataOnBeforeTempInteractionMergeDataInsert(var TempInteractionMergeData: Record "Interaction Merge Data" temporary, var SegmentLine: Record "Segment Line")

Parameters

Name Type Description
TempInteractionMergeData Table Microsoft.CRM.Interaction."Interaction Merge Data"
SegmentLine Table Microsoft.CRM.Segment."Segment Line"

OnLoadTempAttachmentOnBeforeInsertTempAttachment

[IntegrationEvent(False,False)]
local procedure OnLoadTempAttachmentOnBeforeInsertTempAttachment(SegmentLine: Record "Segment Line", var TempAttachment: Record Attachment temporary)

Parameters

Name Type Description
SegmentLine Table Microsoft.CRM.Segment."Segment Line"
TempAttachment Table Microsoft.CRM.Interaction.Attachment

OnValidateInteractionTemplateCodeOnBeforeGettingContact

[IntegrationEvent(False,False)]
local procedure OnValidateInteractionTemplateCodeOnBeforeGettingContact(SegmentLine: Record "Segment Line", xSegmentLine: Record "Segment Line", var Contact: Record Contact, var IsHandled: Boolean)

Parameters

Name Type Description
SegmentLine Table Microsoft.CRM.Segment."Segment Line"
xSegmentLine Table Microsoft.CRM.Segment."Segment Line"
Contact Table Microsoft.CRM.Contact.Contact
IsHandled Boolean

OnBeforeHandleTrigger

[IntegrationEvent(False,False)]
local procedure OnBeforeHandleTrigger(var SegmentLine: Record "Segment Line", var TempAttachment: Record Attachment temporary, var Merged: Boolean, var IsHandled: Boolean)

Parameters

Name Type Description
SegmentLine Table Microsoft.CRM.Segment."Segment Line"
TempAttachment Table Microsoft.CRM.Interaction.Attachment
Merged Boolean
IsHandled Boolean

See also