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]
|
Specifies the segment number of the contact to whom the segment line applies.
|
| "Line No." |
Integer
|
Specifies the line number of the contact to whom the segment line applies.
|
| "Contact No." |
Code[20]
|
Specifies the number of the contact to which this segment line applies.
|
| "Campaign No." |
Code[20]
|
Specifies the number of the campaign for which the segment line has been created.
|
| "Salesperson Code" |
Code[20]
|
Specifies the code of the salesperson responsible for this segment line and/or interaction.
|
| "Correspondence Type" |
Enum Microsoft.CRM.Interaction."Correspondence Type"
|
Specifies the type of correspondence for the interaction. NOTE: If you use the Web client, you must not select the Hard Copy option because printing is not possible from the web client.
|
| "Interaction Template Code" |
Code[10]
|
Specifies the type of the interaction.
|
| "Cost (LCY)" |
Decimal
|
|
| "Duration (Min.)" |
Decimal
|
|
| "Attachment No." |
Integer
|
|
| "Campaign Response" |
Boolean
|
Specifies that the interaction created for the segment is the response to a campaign. For example, coupons that are sent as a response to a campaign.
|
| "Contact Name" |
Text[100]
|
Specifies the name of the contact to which the segment line applies. The program automatically fills in this field when you fill in the Contact No. field on the line.
|
| "Information Flow" |
Option
|
Specifies the direction of the information that is part of the interaction created for this segment line. There are two options: Inbound and Outbound.
|
| "Initiated By" |
Option
|
Specifies whether the interaction recorded for this segment line was initiated by your company or by one of your contacts. The Us option indicates that your company was the initiator; the Them option indicates that a contact was the initiator.
|
| "Contact Alt. Address Code" |
Code[10]
|
Specifies the code of the contact's alternate address to use for this interaction.
|
| Evaluation |
Enum Microsoft.CRM.Interaction."Interaction Evaluation"
|
Specifies the evaluation of the interaction involving the contact in the segment.
|
| "Campaign Target" |
Boolean
|
Specifies that the segment involved in this interaction is the target of a campaign. This is used to measure the response rate of a campaign.
|
| "Contact Company Name" |
Text[100]
|
Specifies the name of the company for which the contact works. If the contact is a company, this field contains the company's name.
|
| "Language Code" |
Code[10]
|
Specifies the language that is used when translating specified text on documents to foreign business partner, such as an item description on an order confirmation.
|
| Description |
Text[100]
|
Specifies the description of the segment line.
|
| Date |
Date
|
Specifies the date of the contact to whom the segment line applies.
|
| "Time of Interaction" |
Time
|
Specifies the time when the interaction took place
|
| "Attempt Failed" |
Boolean
|
Specifies the attempt failed of the contact to whom the segment line applies.
|
| "To-do No." |
Code[20]
|
Specifies the To-do number of the contact to whom the segment line applies.
|
| "Contact Company No." |
Code[20]
|
Specifies the contact company number of the contact to whom the segment line applies.
|
| "Campaign Entry No." |
Integer
|
Specifies the campaign entry number of the contact to whom the segment line applies.
|
| "Interaction Group Code" |
Code[10]
|
Specifies the interaction group code of the contact to whom the segment line applies.
|
| "Document Type" |
Enum Microsoft.CRM.Interaction."Interaction Log Entry Document Type"
|
Specifies the document type of the contact to whom the segment line applies.
|
| "Document No." |
Code[20]
|
Specifies the document number of the contact to whom the segment line applies.
|
| "Send Word Doc. As Attmt." |
Boolean
|
Specifies that the Microsoft Word document that is linked to that segment line should be sent as an attachment in the e-mail message.
|
| "Contact Via" |
Text[80]
|
Specifies the telephone number you used when calling the contact, or the email address you used when sending an email to the contact.
|
| "Version No." |
Integer
|
Specifies the version number of the contact to whom the segment line applies.
|
| "Doc. No. Occurrence" |
Integer
|
|
| Subject |
Text[100]
|
Specifies the subject of the segment line. The text in the field is used as the subject in e-mails and Word documents.
|
| "Opportunity No." |
Code[20]
|
Specifies the opportunity number of the contact to whom the segment line applies.
|
| "Contact Phone No." |
Text[30]
|
Specifies the telephone number of the contact to whom the segment line applies. The number will be filled in for you if you choose a contact in the Contact No. field on the line.
|
| "Contact Mobile Phone No." |
Text[30]
|
Specifies the mobile telephone number of the contact to whom the segment line applies. The number will be filled in for you if you choose a contact in the Contact No. field on the line.
|
| "Contact Email" |
Text[80]
|
Specifies the email address of the contact to whom the segment line applies. The address will be filled in for you if you choose a contact in the Contact No. field on the line.
|
| "Word Template Code" |
Code[30]
|
Specifies the Word Template code to use for merging.
|
| Merged |
Boolean
|
|
| "Wizard Step" |
Enum Microsoft.CRM.Segment."Segment Line Wizard Step"
|
Specifies the wizard step of the contact to whom the segment line applies.
|
| "Wizard Contact Name" |
Text[100]
|
Specifies the wizard contact name of the contact to whom the segment line applies.
|
| "Opportunity Description" |
Text[100]
|
Specifies a description of the opportunity that is related to the segment. The description is copied from the opportunity card.
|
| "Campaign Description" |
Text[100]
|
Specifies the campaign description of the contact to whom the segment line applies.
|
| "Interaction Successful" |
Boolean
|
Specifies if the interaction was successful. Clear this check box to indicate that the interaction was not a success.
|
| "Dial Contact" |
Boolean
|
Specifies the dial contact of the contact to whom the segment line applies.
|
| "Mail Contact" |
Boolean
|
Specifies the mail contact of the contact to whom the segment line applies.
|
| SystemId |
Guid
|
|
| SystemCreatedAt |
DateTime
|
|
| SystemCreatedBy |
Guid
|
|
| SystemModifiedAt |
DateTime
|
|
| SystemModifiedBy |
Guid
|
|
| SystemCreatedByUserName |
Text[50]
|
|
| SystemCreatedByFullName |
Text[80]
|
|
| SystemModifiedByUserName |
Text[50]
|
|
| SystemModifiedByFullName |
Text[80]
|
|
| SystemRowVersion |
BigInteger
|
|
Methods
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
SetInteractionAttachment
procedure SetInteractionAttachment()
CopyFromInteractLogEntry
procedure CopyFromInteractLogEntry(var InteractionLogEntry: Record "Interaction Log Entry")
Parameters
CreateSegLineInteractionFromContact
procedure CreateSegLineInteractionFromContact(var Contact: Record Contact)
Parameters
CreateInteractionFromSalesperson
procedure CreateInteractionFromSalesperson(var SalespersonPurchaser: Record "Salesperson/Purchaser")
Parameters
CreateInteractionFromInteractLogEntry
procedure CreateInteractionFromInteractLogEntry(var InteractionLogEntry: Record "Interaction Log Entry")
Parameters
CreateInteractionFromTask
procedure CreateInteractionFromTask(var Task: Record "To-do")
Parameters
CreateInteractionFromOpp
procedure CreateInteractionFromOpp(var Opportunity: Record Opportunity)
Parameters
CreateOpportunity
procedure CreateOpportunity(): Code[20]
Returns
| Type |
Description |
|
Code[20] |
|
StartWizard
SendCreateOpportunityNotification
procedure SendCreateOpportunityNotification()
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
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
StartWizard2
CheckPhoneCallStatus
procedure CheckPhoneCallStatus()
LogSegLinePhoneCall
procedure LogSegLinePhoneCall()
ShowComment
SetComments
procedure SetComments(var InterLogEntryCommentLineLocal: Record "Inter. Log Entry Comment Line")
Parameters
IsHTMLAttachment
procedure IsHTMLAttachment(): Boolean
Returns
PreviewSegLineHTMLContent
procedure PreviewSegLineHTMLContent()
LanguageCodeOnLookup
procedure LanguageCodeOnLookup()
FilterContactCompanyOpportunities
procedure FilterContactCompanyOpportunities(var Opportunity: Record Opportunity)
Parameters
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
OnAfterCopyFromInteractionLogEntry
[IntegrationEvent(False,False)]
local procedure OnAfterCopyFromInteractionLogEntry(var SegmentLine: Record "Segment Line"; InteractionLogEntry: Record "Interaction Log Entry")
Parameters
OnAfterCreateFromTask
[IntegrationEvent(False,False)]
local procedure OnAfterCreateFromTask(var SegmentLine: Record "Segment Line"; Task: Record "To-do")
Parameters
OnAfterInitLine
[IntegrationEvent(False,False)]
local procedure OnAfterInitLine(var SegmentLine: Record "Segment Line"; SegmentHeader: Record "Segment Header")
Parameters
OnAfterFinishWizard
[IntegrationEvent(False,False)]
local procedure OnAfterFinishWizard(var SegmentLine: Record "Segment Line"; InteractionLogEntry: Record "Interaction Log Entry"; IsFinish: Boolean; Flag: Boolean)
Parameters
OnBeforeGetFinishInteractionFlag
[IntegrationEvent(False,False)]
local procedure OnBeforeGetFinishInteractionFlag(var SegmentLine: Record "Segment Line"; IsFinish: Boolean; var Flag: Boolean; var IsHandled: Boolean)
Parameters
OnBeforeCheckStatus
[IntegrationEvent(False,False)]
local procedure OnBeforeCheckStatus(var SegmentLine: Record "Segment Line"; var IsHandled: Boolean; var AttachmentTmp: Record Attachment temporary)
Parameters
OnBeforeCreatePhoneCall
[IntegrationEvent(False,False)]
local procedure OnBeforeCreatePhoneCall(var SegmentLine: Record "Segment Line"; var IsHandled: Boolean)
Parameters
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
OnBeforeSendCreateOpportunityNotification
[IntegrationEvent(False,False)]
local procedure OnBeforeSendCreateOpportunityNotification(var SegmentLine: Record "Segment Line"; var IsHandled: Boolean)
Parameters
OnBeforeSetCorrespondenceType
[IntegrationEvent(False,False)]
local procedure OnBeforeSetCorrespondenceType(var SegmentLine: Record "Segment Line"; var xSegmentLine: Record "Segment Line"; var IsHandled: Boolean)
Parameters
OnBeforeStartWizard
[IntegrationEvent(False,False)]
local procedure OnBeforeStartWizard(var SegmentLine: Record "Segment Line"; var IsHandled: Boolean)
Parameters
OnBeforeRunCreateInteraction
[IntegrationEvent(False,False)]
local procedure OnBeforeRunCreateInteraction(var SegmentLine: Record "Segment Line"; var IsHandled: Boolean)
Parameters
OnBeforeStartWizard2
[IntegrationEvent(False,False)]
local procedure OnBeforeStartWizard2(var SegmentLine: Record "Segment Line")
Parameters
OnCreateInteractionFromContactOnBeforeStartWizard
[IntegrationEvent(False,False)]
local procedure OnCreateInteractionFromContactOnBeforeStartWizard(var SegmentLine: Record "Segment Line"; var Contact: Record Contact)
Parameters
OnCreateInteractionFromSalespersonOnBeforeStartWizard
[IntegrationEvent(False,False)]
local procedure OnCreateInteractionFromSalespersonOnBeforeStartWizard(var SegmentLine: Record "Segment Line"; SalespersonPurchaser: Record "Salesperson/Purchaser")
Parameters
OnCreateInteractionFromInteractLogEntryOnBeforeStartWizard
[IntegrationEvent(False,False)]
local procedure OnCreateInteractionFromInteractLogEntryOnBeforeStartWizard(var SegmentLine: Record "Segment Line"; var InteractionLogEntry: Record "Interaction Log Entry")
Parameters
OnCreateInteractionFromTaskOnBeforeStartWizard
[IntegrationEvent(False,False)]
local procedure OnCreateInteractionFromTaskOnBeforeStartWizard(var SegmentLine: Record "Segment Line"; Task: Record "To-do")
Parameters
OnCreateInteractionFromOppOnBeforeStartWizard
[IntegrationEvent(False,False)]
local procedure OnCreateInteractionFromOppOnBeforeStartWizard(var SegmentLine: Record "Segment Line"; Opportunity: Record Opportunity)
Parameters
OnCreatePhoneCallOnBeforeStartWizard2
[IntegrationEvent(False,False)]
local procedure OnCreatePhoneCallOnBeforeStartWizard2(var TempSegmentLine: Record "Segment Line" temporary; SegmentLine: Record "Segment Line")
Parameters
OnDeleteOnBeforeSegmentCriteriaLineDeleteAll
[IntegrationEvent(False,False)]
local procedure OnDeleteOnBeforeSegmentCriteriaLineDeleteAll(SegmentLine: Record "Segment Line"; SegmentCriteriaLine: Record "Segment Criteria Line")
Parameters
OnFinishWizardOnAfterSetSend
[IntegrationEvent(False,False)]
local procedure OnFinishWizardOnAfterSetSend(var SegmentLine: Record "Segment Line"; var Send: Boolean)
Parameters
OnHandleTriggerCaseElse
[IntegrationEvent(False,False)]
local procedure OnHandleTriggerCaseElse(SegmentLine: Record "Segment Line"; InteractionTemplate: Record "Interaction Template")
Parameters
OnValidateInteractionTemplateCode
[IntegrationEvent(False,False)]
local procedure OnValidateInteractionTemplateCode(var SegmentLine: Record "Segment Line"; var Cont: Record Contact; var IsHandled: Boolean)
Parameters
OnInteractionTemplValidateOnBeforeGetInteractTemplLanguage
[IntegrationEvent(False,False)]
local procedure OnInteractionTemplValidateOnBeforeGetInteractTemplLanguage(var SegmentLine: Record "Segment Line"; var IsHandled: Boolean)
Parameters
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
OnBeforeCreateSegLineInteractionFromContact
[IntegrationEvent(False,False)]
local procedure OnBeforeCreateSegLineInteractionFromContact(var SegmentLine: Record "Segment Line"; var Cont: Record Contact; var IsHandled: Boolean)
Parameters
OnBeforeCreateInteractionFromInteractLogEntry
[IntegrationEvent(False,False)]
local procedure OnBeforeCreateInteractionFromInteractLogEntry(var SegmentLine: Record "Segment Line"; var Salesperson: Record "Salesperson/Purchaser")
Parameters
OnFinishSegLineWizardOnBeforeAssignEmptyOpportunityStep
[IntegrationEvent(False,False)]
local procedure OnFinishSegLineWizardOnBeforeAssignEmptyOpportunityStep(var SegmentLine: Record "Segment Line"; var ShouldAssignStep: Boolean)
Parameters
OnFinishSegLineWizardBeforeLogInteraction
[IntegrationEvent(False,False)]
local procedure OnFinishSegLineWizardBeforeLogInteraction(var SegmentLine: Record "Segment Line"; var IsHandled: Boolean)
Parameters
OnValidateInteractionTemplateCodeOnBeforeGetSegInteractTemplLanguage
[IntegrationEvent(False,False)]
local procedure OnValidateInteractionTemplateCodeOnBeforeGetSegInteractTemplLanguage(var SegmentLine: Record "Segment Line"; var IsHandled: Boolean)
Parameters
OnValidateLanguageCodeOnBeforeGetSegmentHeaderGlobal
[IntegrationEvent(False,False)]
local procedure OnValidateLanguageCodeOnBeforeGetSegmentHeaderGlobal(var SegmentLine: Record "Segment Line"; var IsHandled: Boolean)
Parameters
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
OnBeforeSetInteractionAttachment
[IntegrationEvent(False,False)]
local procedure OnBeforeSetInteractionAttachment(var SegmentLine: Record "Segment Line"; var IsHandled: Boolean)
Parameters
OnCreateInteractionMergeDataOnBeforeTempInteractionMergeDataInsert
[IntegrationEvent(False,False)]
local procedure OnCreateInteractionMergeDataOnBeforeTempInteractionMergeDataInsert(var TempInteractionMergeData: Record "Interaction Merge Data" temporary; var SegmentLine: Record "Segment Line")
Parameters
OnLoadTempAttachmentOnBeforeInsertTempAttachment
[IntegrationEvent(False,False)]
local procedure OnLoadTempAttachmentOnBeforeInsertTempAttachment(SegmentLine: Record "Segment Line"; var TempAttachment: Record Attachment temporary)
Parameters
OnValidateInteractionTemplateCodeOnBeforeGettingContact
[IntegrationEvent(False,False)]
local procedure OnValidateInteractionTemplateCodeOnBeforeGettingContact(SegmentLine: Record "Segment Line"; xSegmentLine: Record "Segment Line"; var Contact: Record Contact; var IsHandled: Boolean)
Parameters
OnBeforeHandleTrigger
[IntegrationEvent(False,False)]
local procedure OnBeforeHandleTrigger(var SegmentLine: Record "Segment Line"; var TempAttachment: Record Attachment temporary; var Merged: Boolean; var IsHandled: Boolean)
Parameters
OnStartWizard2OnBeforeInsert
[IntegrationEvent(False,False)]
local procedure OnStartWizard2OnBeforeInsert(var SegmentLine: Record "Segment Line"; Campaign: Record Campaign)
Parameters
See also