Table Campaign
Properties
| Name | Value |
|---|---|
| Caption | Campaign |
| DataCaptionFields | 1,2 |
| DataClassification | CustomerContent |
| LookupPageID | Page Microsoft.CRM.Campaign."Campaign List" |
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 campaign. |
| "Starting Date" | Date | Specifies the date on which the campaign is valid. There are certain rules for how dates should be entered. |
| "Ending Date" | Date | Specifies the last day on which this campaign is valid. |
| "Salesperson Code" | Code[20] | Specifies the code of the salesperson responsible for the campaign. |
| Comment | Boolean | |
| "Last Date Modified" | Date | Specifies the date when the campaign card was last modified. This field is not editable. |
| "No. Series" | Code[20] | |
| "Global Dimension 1 Code" | Code[20] | Specifies the code for the global dimension that is linked to the record or entry for analysis purposes. Two global dimensions, typically for the company's most important activities, are available on all cards, documents, reports, and lists. |
| "Global Dimension 2 Code" | Code[20] | Specifies the code for the global dimension that is linked to the record or entry for analysis purposes. Two global dimensions, typically for the company's most important activities, are available on all cards, documents, reports, and lists. |
| "Status Code" | Code[10] | Specifies the status code for the campaign. |
| "Target Contacts Contacted" | Integer | Specifies the number of target contacts that you have contacted with this campaign. The field is not editable. |
| "Contacts Responded" | Integer | Specifies the number of contacts who have responded to the campaign. This field is not editable. |
| "Duration (Min.)" | Decimal | |
| "Cost (LCY)" | Decimal | |
| "No. of Opportunities" | Integer | Specifies the number of opportunities created as part of this campaign. This field is not editable. |
| "Estimated Value (LCY)" | Decimal | |
| "Calcd. Current Value (LCY)" | Decimal | |
| "Date Filter" | Date | |
| "Action Taken Filter" | Enum Microsoft.CRM.Opportunity."Opportunity Action Taken" | |
| "Sales Cycle Filter" | Code[10] | |
| "Sales Cycle Stage Filter" | Integer | |
| "Probability % Filter" | Decimal | |
| "Completed % Filter" | Decimal | |
| "Contact Filter" | Code[20] | |
| "Contact Company Filter" | Code[20] | |
| "Estimated Value Filter" | Decimal | |
| "Calcd. Current Value Filter" | Decimal | |
| "Chances of Success % Filter" | Decimal | |
| "Task Status Filter" | Enum Microsoft.CRM.Task."Task Status" | |
| "Task Closed Filter" | Boolean | |
| "Priority Filter" | Option | |
| "Team Filter" | Code[10] | |
| "Salesperson Filter" | Code[20] | |
| "Opportunity Entry Exists" | Boolean | |
| "Task Entry Exists" | Boolean | |
| "Close Opportunity Filter" | Code[10] | |
| Activated | Boolean | Specifies if a sales lines price discount has been activated. After you set up a campaign and create segments for it, you can create discounts for targeted audiences. |
| 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(OldCampaign: Record Campaign): Boolean
Parameters
| Name | Type | Description |
|---|---|---|
| OldCampaign | Table Microsoft.CRM.Campaign.Campaign |
Returns
| Type | Description |
|---|---|
| Boolean |
ValidateShortcutDimCode
procedure ValidateShortcutDimCode(FieldNumber: Integer; var ShortcutDimCode: Code[20])
Parameters
| Name | Type | Description |
|---|---|---|
| FieldNumber | Integer | |
| ShortcutDimCode | Code[20] |
ToPriceSource
procedure ToPriceSource(var PriceSource: Record "Price Source")
Parameters
| Name | Type | Description |
|---|---|---|
| PriceSource | Table Microsoft.Pricing.Source."Price Source" |
Events
OnAfterValidateShortcutDimCode
[IntegrationEvent(False,False)]
local procedure OnAfterValidateShortcutDimCode(Campaign: Record Campaign; xCampaign: Record Campaign; FieldNumber: Integer; var ShortcutDimCode: Code[20])
Parameters
| Name | Type | Description |
|---|---|---|
| Campaign | Table Microsoft.CRM.Campaign.Campaign | |
| xCampaign | Table Microsoft.CRM.Campaign.Campaign | |
| FieldNumber | Integer | |
| ShortcutDimCode | Code[20] |
OnBeforeValidateShortcutDimCode
[IntegrationEvent(False,False)]
local procedure OnBeforeValidateShortcutDimCode(Campaign: Record Campaign; xCampaign: Record Campaign; FieldNumber: Integer; var ShortcutDimCode: Code[20])
Parameters
| Name | Type | Description |
|---|---|---|
| Campaign | Table Microsoft.CRM.Campaign.Campaign | |
| xCampaign | Table Microsoft.CRM.Campaign.Campaign | |
| FieldNumber | Integer | |
| ShortcutDimCode | Code[20] |