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>
7 <description>Campaigns link activities, contributions, mailings, etc. that share a programmatic goal.
</description>
9 <icon>fa-bullhorn
</icon>
10 <labelField>title
</labelField>
11 <component>CiviCampaign
</component>
13 <add>civicrm/campaign/add?reset=
1</add>
14 <update>civicrm/campaign/add?reset=
1&action=update
&id=[id]
</update>
15 <delete>civicrm/campaign/add?reset=
1&action=delete
&id=[id]
</delete>
19 <title>Campaign ID
</title>
20 <type>int unsigned
</type>
21 <required>true
</required>
22 <comment>Unique Campaign ID.
</comment>
31 <autoincrement>true
</autoincrement>
36 <title>Campaign Name
</title>
39 <required>true
</required>
40 <comment>Name of the Campaign.
</comment>
48 <name>UI_campaign_name
</name>
49 <fieldName>name
</fieldName>
54 <title>Campaign Title
</title>
57 <comment>Title of the Campaign.
</comment>
66 <name>description
</name>
67 <title>Campaign Description
</title>
74 <comment>Full description of Campaign.
</comment>
79 <name>start_date
</name>
80 <title>Campaign Start Date
</title>
82 <headerPattern>/^start|(s(tart\s)?date)$/i
</headerPattern>
83 <comment>Date and time that Campaign starts.
</comment>
86 <type>Select Date
</type>
87 <formatType>activityDateTime
</formatType>
94 <title>Campaign End Date
</title>
96 <headerPattern>/^end|(e(nd\s)?date)$/i
</headerPattern>
97 <comment>Date and time that Campaign ends.
</comment>
100 <type>Select Date
</type>
101 <formatType>activityDateTime
</formatType>
107 <name>campaign_type_id
</name>
108 <title>Campaign Type
</title>
109 <type>int unsigned
</type>
110 <default>NULL
</default>
111 <comment>Campaign Type ID.Implicit FK to civicrm_option_value where option_group = campaign_type
</comment>
112 <import>true
</import>
114 <optionGroupName>campaign_type
</optionGroupName>
122 <name>UI_campaign_type_id
</name>
123 <fieldName>campaign_type_id
</fieldName>
128 <name>status_id
</name>
129 <title>Campaign Status
</title>
130 <type>int unsigned
</type>
131 <default>NULL
</default>
132 <comment>Campaign status ID.Implicit FK to civicrm_option_value where option_group = campaign_status
</comment>
133 <import>true
</import>
135 <optionGroupName>campaign_status
</optionGroupName>
143 <name>UI_campaign_status_id
</name>
144 <fieldName>status_id
</fieldName>
149 <name>external_identifier
</name>
151 <title>Campaign External ID
</title>
153 <headerPattern>/external\s?id/i
</headerPattern>
154 <dataPattern>/^\d{
11,}$/
</dataPattern>
155 <comment>Unique trusted external ID (generally from a legacy app/datasource). Particularly useful for deduping operations.
</comment>
156 <import>true
</import>
163 <name>UI_external_identifier
</name>
164 <unique>true
</unique>
165 <fieldName>external_identifier
</fieldName>
170 <name>parent_id
</name>
171 <title>Parent Campaign ID
</title>
172 <type>int unsigned
</type>
173 <default>NULL
</default>
174 <comment>Optional parent id for this Campaign.
</comment>
175 <import>true
</import>
178 <type>EntityRef
</type>
179 <label>Parent Campaign
</label>
183 <name>parent_id
</name>
184 <table>civicrm_campaign
</table>
187 <onDelete>SET NULL
</onDelete>
191 <name>is_active
</name>
192 <title>Is Campaign Active?
</title>
195 <comment>Is this Campaign enabled or disabled/cancelled?
</comment>
198 <type>CheckBox
</type>
203 <name>created_id
</name>
204 <type>int unsigned
</type>
205 <title>Created By Contact ID
</title>
206 <comment>FK to civicrm_contact, who created this Campaign.
</comment>
208 <label>Created By
</label>
213 <name>created_id
</name>
214 <table>civicrm_contact
</table>
217 <onDelete>SET NULL
</onDelete>
221 <name>created_date
</name>
222 <type>datetime
</type>
223 <title>Campaign Created Date
</title>
224 <comment>Date and time that Campaign was created.
</comment>
227 <type>Select Date
</type>
228 <formatType>activityDateTime
</formatType>
233 <name>last_modified_id
</name>
234 <type>int unsigned
</type>
235 <title>Modified By Contact ID
</title>
236 <comment>FK to civicrm_contact, who recently edited this Campaign.
</comment>
238 <label>Modified By
</label>
243 <name>last_modified_id
</name>
244 <table>civicrm_contact
</table>
247 <onDelete>SET NULL
</onDelete>
251 <name>last_modified_date
</name>
252 <type>datetime
</type>
253 <title>Campaign Modified Date
</title>
254 <comment>Date and time that Campaign was edited last time.
</comment>
258 <name>goal_general
</name>
260 <title>Campaign Goals
</title>
261 <comment>General goals for Campaign.
</comment>
264 <type>RichTextEditor
</type>
268 <name>goal_revenue
</name>
270 <comment>The target revenue for this campaign.
</comment>
274 <label>Goal Revenue
</label>