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>
11 <title>Campaign ID
</title>
12 <type>int unsigned
</type>
13 <required>true
</required>
14 <comment>Unique Campaign ID.
</comment>
20 <autoincrement>true
</autoincrement>
25 <title>Campaign Name
</title>
28 <required>true
</required>
29 <comment>Name of the Campaign.
</comment>
39 <title>Campaign Title
</title>
42 <comment>Title of the Campaign.
</comment>
51 <name>description
</name>
52 <title>Campaign Description
</title>
59 <comment>Full description of Campaign.
</comment>
64 <name>start_date
</name>
65 <title>Campaign Start Date
</title>
67 <headerPattern>/^start|(s(tart\s)?date)$/i
</headerPattern>
68 <comment>Date and time that Campaign starts.
</comment>
71 <type>Select Date
</type>
72 <formatType>activityDateTime
</formatType>
79 <title>Campaign End Date
</title>
81 <headerPattern>/^end|(e(nd\s)?date)$/i
</headerPattern>
82 <comment>Date and time that Campaign ends.
</comment>
85 <type>Select Date
</type>
86 <formatType>activityDateTime
</formatType>
92 <name>campaign_type_id
</name>
93 <title>Campaign Type
</title>
94 <type>int unsigned
</type>
95 <default>NULL
</default>
96 <comment>Campaign Type ID.Implicit FK to civicrm_option_value where option_group = campaign_type
</comment>
99 <optionGroupName>campaign_type
</optionGroupName>
107 <name>UI_campaign_type_id
</name>
108 <fieldName>campaign_type_id
</fieldName>
113 <name>status_id
</name>
114 <title>Campaign Status
</title>
115 <type>int unsigned
</type>
116 <default>NULL
</default>
117 <comment>Campaign status ID.Implicit FK to civicrm_option_value where option_group = campaign_status
</comment>
118 <import>true
</import>
120 <optionGroupName>campaign_status
</optionGroupName>
128 <name>UI_campaign_status_id
</name>
129 <fieldName>status_id
</fieldName>
134 <name>external_identifier
</name>
136 <title>Campaign External ID
</title>
138 <headerPattern>/external\s?id/i
</headerPattern>
139 <dataPattern>/^\d{
11,}$/
</dataPattern>
140 <comment>Unique trusted external ID (generally from a legacy app/datasource). Particularly useful for deduping operations.
</comment>
141 <import>true
</import>
148 <name>UI_external_identifier
</name>
149 <unique>true
</unique>
150 <fieldName>external_identifier
</fieldName>
155 <name>parent_id
</name>
156 <title>Parent Campaign
</title>
157 <type>int unsigned
</type>
158 <default>NULL
</default>
159 <comment>Optional parent id for this Campaign.
</comment>
160 <import>true
</import>
163 <type>EntityRef
</type>
167 <name>parent_id
</name>
168 <table>civicrm_campaign
</table>
171 <onDelete>SET NULL
</onDelete>
175 <name>is_active
</name>
176 <title>Is Campaign Active?
</title>
179 <comment>Is this Campaign enabled or disabled/cancelled?
</comment>
182 <type>CheckBox
</type>
187 <name>created_id
</name>
188 <type>int unsigned
</type>
189 <title>Campaign Created By
</title>
190 <comment>FK to civicrm_contact, who created this Campaign.
</comment>
194 <name>created_id
</name>
195 <table>civicrm_contact
</table>
198 <onDelete>SET NULL
</onDelete>
202 <name>created_date
</name>
203 <type>datetime
</type>
204 <title>Campaign Created Date
</title>
205 <comment>Date and time that Campaign was created.
</comment>
208 <type>Select Date
</type>
209 <formatType>activityDateTime
</formatType>
214 <name>last_modified_id
</name>
215 <type>int unsigned
</type>
216 <title>Campaign Modified By
</title>
217 <comment>FK to civicrm_contact, who recently edited this Campaign.
</comment>
221 <name>last_modified_id
</name>
222 <table>civicrm_contact
</table>
225 <onDelete>SET NULL
</onDelete>
229 <name>last_modified_date
</name>
230 <type>datetime
</type>
231 <title>Campaign Modified Date
</title>
232 <comment>Date and time that Campaign was edited last time.
</comment>
236 <name>goal_general
</name>
238 <title>Campaign Goals
</title>
239 <comment>General goals for Campaign.
</comment>
242 <type>RichTextEditor
</type>
246 <name>goal_revenue
</name>
248 <comment>The target revenue for this campaign.
</comment>