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>
30 <autoincrement>true
</autoincrement>
35 <title>Campaign Name
</title>
38 <required>true
</required>
39 <comment>Name of the Campaign.
</comment>
47 <name>UI_campaign_name
</name>
48 <fieldName>name
</fieldName>
53 <title>Campaign Title
</title>
56 <comment>Title of the Campaign.
</comment>
65 <name>description
</name>
66 <title>Campaign Description
</title>
73 <comment>Full description of Campaign.
</comment>
78 <name>start_date
</name>
79 <title>Campaign Start Date
</title>
81 <headerPattern>/^start|(s(tart\s)?date)$/i
</headerPattern>
82 <comment>Date and time that Campaign starts.
</comment>
85 <type>Select Date
</type>
86 <formatType>activityDateTime
</formatType>
93 <title>Campaign End Date
</title>
95 <headerPattern>/^end|(e(nd\s)?date)$/i
</headerPattern>
96 <comment>Date and time that Campaign ends.
</comment>
99 <type>Select Date
</type>
100 <formatType>activityDateTime
</formatType>
106 <name>campaign_type_id
</name>
107 <title>Campaign Type
</title>
108 <type>int unsigned
</type>
109 <default>NULL
</default>
110 <comment>Campaign Type ID.Implicit FK to civicrm_option_value where option_group = campaign_type
</comment>
111 <import>true
</import>
113 <optionGroupName>campaign_type
</optionGroupName>
121 <name>UI_campaign_type_id
</name>
122 <fieldName>campaign_type_id
</fieldName>
127 <name>status_id
</name>
128 <title>Campaign Status
</title>
129 <type>int unsigned
</type>
130 <default>NULL
</default>
131 <comment>Campaign status ID.Implicit FK to civicrm_option_value where option_group = campaign_status
</comment>
132 <import>true
</import>
134 <optionGroupName>campaign_status
</optionGroupName>
142 <name>UI_campaign_status_id
</name>
143 <fieldName>status_id
</fieldName>
148 <name>external_identifier
</name>
150 <title>Campaign External ID
</title>
152 <headerPattern>/external\s?id/i
</headerPattern>
153 <dataPattern>/^\d{
11,}$/
</dataPattern>
154 <comment>Unique trusted external ID (generally from a legacy app/datasource). Particularly useful for deduping operations.
</comment>
155 <import>true
</import>
162 <name>UI_external_identifier
</name>
163 <unique>true
</unique>
164 <fieldName>external_identifier
</fieldName>
169 <name>parent_id
</name>
170 <title>Parent Campaign ID
</title>
171 <type>int unsigned
</type>
172 <default>NULL
</default>
173 <comment>Optional parent id for this Campaign.
</comment>
174 <import>true
</import>
177 <type>EntityRef
</type>
178 <label>Parent Campaign
</label>
182 <name>parent_id
</name>
183 <table>civicrm_campaign
</table>
186 <onDelete>SET NULL
</onDelete>
190 <name>is_active
</name>
191 <title>Is Campaign Active?
</title>
194 <comment>Is this Campaign enabled or disabled/cancelled?
</comment>
197 <type>CheckBox
</type>
202 <name>created_id
</name>
203 <type>int unsigned
</type>
204 <title>Campaign Created By Contact ID
</title>
205 <comment>FK to civicrm_contact, who created this Campaign.
</comment>
207 <label>Campaign Created By
</label>
212 <name>created_id
</name>
213 <table>civicrm_contact
</table>
216 <onDelete>SET NULL
</onDelete>
220 <name>created_date
</name>
221 <type>datetime
</type>
222 <title>Campaign Created Date
</title>
223 <comment>Date and time that Campaign was created.
</comment>
226 <type>Select Date
</type>
227 <formatType>activityDateTime
</formatType>
232 <name>last_modified_id
</name>
233 <type>int unsigned
</type>
234 <title>Campaign Modified By Contact ID
</title>
235 <comment>FK to civicrm_contact, who recently edited this Campaign.
</comment>
237 <label>Campaign Modified By
</label>
242 <name>last_modified_id
</name>
243 <table>civicrm_contact
</table>
246 <onDelete>SET NULL
</onDelete>
250 <name>last_modified_date
</name>
251 <type>datetime
</type>
252 <title>Campaign Modified Date
</title>
253 <comment>Date and time that Campaign was edited last time.
</comment>
257 <name>goal_general
</name>
259 <title>Campaign Goals
</title>
260 <comment>General goals for Campaign.
</comment>
263 <type>RichTextEditor
</type>
267 <name>goal_revenue
</name>
269 <comment>The target revenue for this campaign.
</comment>