Table "Segment Header"
ID 5076
Namespace: Microsoft.CRM.Segment
Properties
Fields
| Name |
Type |
Description |
| "No." |
Code[20]
|
Specifies the number of the involved entry or record, according to the specified number series.
|
| Description |
Text[100]
|
Specifies the description of the segment.
|
| "Campaign No." |
Code[20]
|
Specifies the number of the campaign for which the segment has been created.
|
| "Salesperson Code" |
Code[20]
|
Specifies the code of the salesperson responsible for this segment and/or interaction.
|
| "Correspondence Type (Default)" |
Enum Microsoft.CRM.Interaction."Correspondence Type"
|
|
| "Interaction Template Code" |
Code[10]
|
Specifies the interaction template code of the interaction involving the segment.
|
| "Unit Cost (LCY)" |
Decimal
|
|
| "Unit Duration (Min.)" |
Decimal
|
|
| "Attachment No." |
Integer
|
|
| Date |
Date
|
Specifies the date that the segment was created.
|
| "Campaign Target" |
Boolean
|
Specifies that the segment is part of the target of the campaign to which it is linked.
|
| "Information Flow" |
Option
|
Specifies the direction of the information that is part of the interaction created for the segment. There are two options: Inbound and Outbound.
|
| "Initiated By" |
Option
|
Specifies whether the interaction recorded for this segment 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.
|
| "No. Series" |
Code[20]
|
|
| "Campaign Response" |
Boolean
|
Specifies that the interaction created for the segment is the response to a campaign.
|
| "No. of Lines" |
Integer
|
Specifies the number of lines within the segment.
|
| "Cost (LCY)" |
Decimal
|
|
| "Duration (Min.)" |
Decimal
|
|
| "Language Code (Default)" |
Code[10]
|
|
| "Interaction Group Code" |
Code[10]
|
|
| "No. of Criteria Actions" |
Integer
|
Specifies the number of actions you have taken when modifying the segmentation criteria, that is, when adding contacts to the segment, refining, or reducing it.
|
| "Send Word Docs. as Attmt." |
Boolean
|
Specifies that the Microsoft Word document should be sent as an attachment in the e-mail message.
|
| "Ignore Contact Corres. Type" |
Boolean
|
Specifies that the correspondence type that you select in the Correspondence Type (Default) field should be used. If there is no check mark, the program uses the correspondence type selected on the Contact Card.
|
| "Subject (Default)" |
Text[100]
|
|
| "Campaign Description" |
Text[100]
|
Specifies a description of the campaign to which the segment is related. The description is copied from the campaign card.
|
| "Word Template Code" |
Code[30]
|
Specifies the Word Template code to use for merging.
|
| "Modified Word Template" |
Integer
|
|
| 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
AssistEdit
procedure AssistEdit(OldSegHeader: Record "Segment Header"): Boolean
Parameters
Returns
CreateOpportunities
procedure CreateOpportunities()
CreateSegInteractions
procedure CreateSegInteractions(InteractionTemplateCode: Code[10]; SegmentNo: Code[20]; SegmentLineNo: Integer)
Parameters
| Name |
Type |
Description |
|
InteractionTemplateCode
|
Code[10] |
|
|
SegmentNo
|
Code[20] |
|
|
SegmentLineNo
|
Integer |
|
UpdateSegLinesByFieldNo
procedure UpdateSegLinesByFieldNo(ChangedFieldNo: Integer; AskQuestion: Boolean)
Parameters
| Name |
Type |
Description |
|
ChangedFieldNo
|
Integer |
|
|
AskQuestion
|
Boolean |
|
SegLinesExist
procedure SegLinesExist(ChangedFieldName: Text[100]): Boolean
Parameters
| Name |
Type |
Description |
|
ChangedFieldName
|
Text[100] |
|
Returns
ReuseLogged
procedure ReuseLogged(LoggedSegEntryNo: Integer)
Parameters
| Name |
Type |
Description |
|
LoggedSegEntryNo
|
Integer |
|
ReuseCriteria
procedure ReuseCriteria()
SaveCriteria
UpdateSegHeader
procedure UpdateSegHeader(InteractTmplCode: Code[10]; InteractTmplChange: Boolean)
Parameters
| Name |
Type |
Description |
|
InteractTmplCode
|
Code[10] |
|
|
InteractTmplChange
|
Boolean |
|
Events
OnAfterReuseLogged
[IntegrationEvent(False,False)]
local procedure OnAfterReuseLogged(var SegmentHeader: Record "Segment Header"; LoggedSegment: Record "Logged Segment")
Parameters
OnReuseLoggedOnBeforeFindInteractLogEntries
[IntegrationEvent(False,False)]
local procedure OnReuseLoggedOnBeforeFindInteractLogEntries(var SegmentHeader: Record "Segment Header"; LoggedSegment: Record "Logged Segment"; var InteractionLogEntry: Record "Interaction Log Entry")
Parameters
OnAfterUpdateSegHeader
[IntegrationEvent(False,False)]
local procedure OnAfterUpdateSegHeader(var SegmentHeader: Record "Segment Header")
Parameters
OnAfterUpdateSegLinesByFieldNo
[IntegrationEvent(False,False)]
local procedure OnAfterUpdateSegLinesByFieldNo(var SegmentHeader: Record "Segment Header"; CalledByFieldNo: Integer)
Parameters
OnBeforeReuseCriteria
[IntegrationEvent(False,False)]
local procedure OnBeforeReuseCriteria(var SegmentHeader: Record "Segment Header"; var IsHandled: Boolean)
Parameters
OnBeforeUpdateSegHeader
[IntegrationEvent(False,False)]
local procedure OnBeforeUpdateSegHeader(var SegmentHeader: Record "Segment Header"; InteractTmplCode: Code[10]; InteractTmplChange: Boolean; var IsHandled: Boolean; CurrentFieldNo: Integer)
Parameters
OnBeforeUpdateSegLinesByFieldNo
[IntegrationEvent(False,False)]
local procedure OnBeforeUpdateSegLinesByFieldNo(SegmentHeader: Record "Segment Header"; ChangedFieldNo: Integer; var AskQuestion: Boolean; var IsHandled: Boolean)
Parameters
OnReuseCriteriaSavedSegmentCriteriaLineCaseElse
[IntegrationEvent(False,False)]
local procedure OnReuseCriteriaSavedSegmentCriteriaLineCaseElse(var SegmentHeader: Record "Segment Header"; var SavedSegmentCriteriaLine: Record "Saved Segment Criteria Line")
Parameters
OnAfterInsertSegmentLine
[IntegrationEvent(False,False)]
local procedure OnAfterInsertSegmentLine(var SegmentLine: Record "Segment Line"; InteractionLogEntry: Record "Interaction Log Entry")
Parameters
OnBeforeSaveCriteria
[IntegrationEvent(False,False)]
local procedure OnBeforeSaveCriteria(var SegmentHeader: Record "Segment Header"; var IsHandled: Boolean)
Parameters
OnReuseContactsOnBeforeAddContactsRun
[IntegrationEvent(False,False)]
local procedure OnReuseContactsOnBeforeAddContactsRun(var AddContacts: Report "Add Contacts"; var SavedSegCriteriaLineAction: Record "Saved Segment Criteria Line")
Parameters
OnReuseContactsOnBeforeReduceContactsRun
[IntegrationEvent(False,False)]
local procedure OnReuseContactsOnBeforeReduceContactsRun(var ReduceContacts: Report "Remove Contacts - Reduce"; var SavedSegCriteriaLineAction: Record "Saved Segment Criteria Line")
Parameters
OnReuseContactsOnBeforeRefineContactsRun
[IntegrationEvent(False,False)]
local procedure OnReuseContactsOnBeforeRefineContactsRun(var RefineContacts: Report "Remove Contacts - Refine"; var SavedSegCriteriaLineAction: Record "Saved Segment Criteria Line")
Parameters
OnUpdateSegHeaderOnBeforeSecondModify
[IntegrationEvent(False,False)]
local procedure OnUpdateSegHeaderOnBeforeSecondModify(var SegmentHeader: Record "Segment Header")
Parameters
OnBeforeValidateSubjectDefault
[IntegrationEvent(False,False)]
local procedure OnBeforeValidateSubjectDefault(var SegmentHeader: Record "Segment Header"; xSegmentHeader: Record "Segment Header"; var IsHandled: Boolean)
Parameters
OnCreateSegInteractionsOnAfterDeleteAll
[IntegrationEvent(False,False)]
local procedure OnCreateSegInteractionsOnAfterDeleteAll(InteractionTemplateCode: Code[10]; SegmentNo: Code[20]; SegmentLineNo: Integer; var IsHandled: Boolean)
Parameters
| Name |
Type |
Description |
|
InteractionTemplateCode
|
Code[10] |
|
|
SegmentNo
|
Code[20] |
|
|
SegmentLineNo
|
Integer |
|
|
IsHandled
|
Boolean |
|
OnSaveCriteriaOnBeforeInsertSegmentCriteriaLine
[IntegrationEvent(False,False)]
local procedure OnSaveCriteriaOnBeforeInsertSegmentCriteriaLine(var SegmentCriteriaLine: Record "Segment Criteria Line"; var SavedSegmentCriteriaLine: Record "Saved Segment Criteria Line")
Parameters
See also