1 <?xml version=
"1.0" encoding=
"iso-8859-1" ?>
3 <base>CRM/Campaign
</base>
4 <class>Campaign
</class>
5 <name>civicrm_campaign
</name>
6 <comment>Campaign Details.
</comment>
8 <icon>fa-bullhorn
</icon>
9 <labelField>title
</labelField>
10 <component>CiviCampaign
</component>
12 <add>civicrm/campaign/add?reset=
1</add>
13 <update>civicrm/campaign/add?reset=
1&action=update
&id=[id]
</update>
14 <delete>civicrm/campaign/add?reset=
1&action=delete
&id=[id]
</delete>
18 <title>Campaign ID
</title>
19 <type>int unsigned
</type>
20 <required>true
</required>
21 <comment>Unique Campaign ID.
</comment>
27 <autoincrement>true
</autoincrement>
32 <title>Campaign Name
</title>
35 <required>true
</required>
36 <comment>Name of the Campaign.
</comment>
44 <name>UI_campaign_name
</name>
45 <fieldName>name
</fieldName>
50 <title>Campaign Title
</title>
53 <comment>Title of the Campaign.
</comment>
62 <name>description
</name>
63 <title>Campaign Description
</title>
70 <comment>Full description of Campaign.
</comment>
75 <name>start_date
</name>
76 <title>Campaign Start Date
</title>
78 <headerPattern>/^start|(s(tart\s)?date)$/i
</headerPattern>
79 <comment>Date and time that Campaign starts.
</comment>
82 <type>Select Date
</type>
83 <formatType>activityDateTime
</formatType>
90 <title>Campaign End Date
</title>
92 <headerPattern>/^end|(e(nd\s)?date)$/i
</headerPattern>
93 <comment>Date and time that Campaign ends.
</comment>
96 <type>Select Date
</type>
97 <formatType>activityDateTime
</formatType>
103 <name>campaign_type_id
</name>
104 <title>Campaign Type
</title>
105 <type>int unsigned
</type>
106 <default>NULL
</default>
107 <comment>Campaign Type ID.Implicit FK to civicrm_option_value where option_group = campaign_type
</comment>
108 <import>true
</import>
110 <optionGroupName>campaign_type
</optionGroupName>
118 <name>UI_campaign_type_id
</name>
119 <fieldName>campaign_type_id
</fieldName>
124 <name>status_id
</name>
125 <title>Campaign Status
</title>
126 <type>int unsigned
</type>
127 <default>NULL
</default>
128 <comment>Campaign status ID.Implicit FK to civicrm_option_value where option_group = campaign_status
</comment>
129 <import>true
</import>
131 <optionGroupName>campaign_status
</optionGroupName>
139 <name>UI_campaign_status_id
</name>
140 <fieldName>status_id
</fieldName>
145 <name>external_identifier
</name>
147 <title>Campaign External ID
</title>
149 <headerPattern>/external\s?id/i
</headerPattern>
150 <dataPattern>/^\d{
11,}$/
</dataPattern>
151 <comment>Unique trusted external ID (generally from a legacy app/datasource). Particularly useful for deduping operations.
</comment>
152 <import>true
</import>
159 <name>UI_external_identifier
</name>
160 <unique>true
</unique>
161 <fieldName>external_identifier
</fieldName>
166 <name>parent_id
</name>
167 <title>Parent Campaign
</title>
168 <type>int unsigned
</type>
169 <default>NULL
</default>
170 <comment>Optional parent id for this Campaign.
</comment>
171 <import>true
</import>
174 <type>EntityRef
</type>
178 <name>parent_id
</name>
179 <table>civicrm_campaign
</table>
182 <onDelete>SET NULL
</onDelete>
186 <name>is_active
</name>
187 <title>Is Campaign Active?
</title>
190 <comment>Is this Campaign enabled or disabled/cancelled?
</comment>
193 <type>CheckBox
</type>
198 <name>created_id
</name>
199 <type>int unsigned
</type>
200 <title>Campaign Created By
</title>
201 <comment>FK to civicrm_contact, who created this Campaign.
</comment>
205 <name>created_id
</name>
206 <table>civicrm_contact
</table>
209 <onDelete>SET NULL
</onDelete>
213 <name>created_date
</name>
214 <type>datetime
</type>
215 <title>Campaign Created Date
</title>
216 <comment>Date and time that Campaign was created.
</comment>
219 <type>Select Date
</type>
220 <formatType>activityDateTime
</formatType>
225 <name>last_modified_id
</name>
226 <type>int unsigned
</type>
227 <title>Campaign Modified By
</title>
228 <comment>FK to civicrm_contact, who recently edited this Campaign.
</comment>
232 <name>last_modified_id
</name>
233 <table>civicrm_contact
</table>
236 <onDelete>SET NULL
</onDelete>
240 <name>last_modified_date
</name>
241 <type>datetime
</type>
242 <title>Campaign Modified Date
</title>
243 <comment>Date and time that Campaign was edited last time.
</comment>
247 <name>goal_general
</name>
249 <title>Campaign Goals
</title>
250 <comment>General goals for Campaign.
</comment>
253 <type>RichTextEditor
</type>
257 <name>goal_revenue
</name>
259 <comment>The target revenue for this campaign.
</comment>