1 <?xml version=
"1.0" encoding=
"iso-8859-1" ?>
3 <base>CRM/Activity
</base>
4 <class>Activity
</class>
5 <name>civicrm_activity
</name>
6 <comment>Other Activity details stored here include contact, location, details.
</comment>
10 <labelField>subject
</labelField>
12 <add>civicrm/activity?reset=
1&action=add
&context=standalone
</add>
13 <view>civicrm/activity?reset=
1&action=view
&id=[id]
</view>
14 <update>civicrm/activity/add?reset=
1&action=update
&id=[id]
</update>
15 <delete>civicrm/activity?reset=
1&action=delete
&id=[id]
</delete>
19 <uniqueName>activity_id
</uniqueName>
20 <title>Activity ID
</title>
22 <type>int unsigned
</type>
23 <required>true
</required>
24 <comment>Unique Other Activity ID
</comment>
32 <autoincrement>true
</autoincrement>
35 <name>source_record_id
</name>
36 <type>int unsigned
</type>
37 <title>Source Record
</title>
38 <comment>Artificial FK to original transaction (e.g. contribution) IF it is not an Activity. Table can be figured out through activity_type_id, and further through component registry.
</comment>
42 <name>UI_source_record_id
</name>
43 <fieldName>source_record_id
</fieldName>
47 <name>activity_type_id
</name>
48 <title>Activity Type ID
</title>
50 <type>int unsigned
</type>
51 <required>true
</required>
54 <headerPattern>/(activity.)?type(.id$)/i
</headerPattern>
55 <comment>FK to civicrm_option_value.id, that has to be valid, registered activity type.
</comment>
58 <optionGroupName>activity_type
</optionGroupName>
62 <label>Activity Type
</label>
66 <name>UI_activity_type_id
</name>
67 <fieldName>activity_type_id
</fieldName>
72 <uniqueName>activity_subject
</uniqueName>
74 <title>Subject
</title>
76 <comment>The subject/purpose/short description of the activity.
</comment>
78 <headerPattern>/(activity.)?subject/i
</headerPattern>
86 <name>activity_date_time
</name>
88 <required>false
</required>
90 <default>CURRENT_TIMESTAMP
</default>
91 <title>Activity Date
</title>
93 <headerPattern>/(activity.)?date(.time$)?/i
</headerPattern>
94 <comment>Date and time this activity is scheduled to occur. Formerly named scheduled_date_time.
</comment>
96 <type>Select Date
</type>
97 <formatType>activityDateTime
</formatType>
102 <name>index_activity_date_time
</name>
103 <fieldName>activity_date_time
</fieldName>
107 <name>duration
</name>
108 <uniqueName>activity_duration
</uniqueName>
109 <title>Duration
</title>
110 <import>true
</import>
111 <type>int unsigned
</type>
112 <headerPattern>/(activity.)?duration(s)?$/i
</headerPattern>
113 <comment>Planned or actual duration of activity expressed in minutes. Conglomerate of former duration_hours and duration_minutes.
</comment>
120 <name>location
</name>
121 <uniqueName>activity_location
</uniqueName>
122 <title>Location
</title>
123 <import>true
</import>
126 <headerPattern>/(activity.)?location$/i
</headerPattern>
127 <comment>Location of the activity (optional, open text).
</comment>
134 <name>phone_id
</name>
135 <type>int unsigned
</type>
136 <title>Phone ID (called)
</title>
137 <comment>Phone ID of the number called (optional - used if an existing phone number is selected).
</comment>
140 <type>EntityRef
</type>
141 <label>Phone (called)
</label>
145 <name>phone_id
</name>
146 <table>civicrm_phone
</table>
149 <onDelete>SET NULL
</onDelete>
152 <name>phone_number
</name>
153 <title>Phone (called) Number
</title>
156 <comment>Phone number in case the number does not exist in the civicrm_phone table.
</comment>
164 <uniqueName>activity_details
</uniqueName>
165 <title>Details
</title>
166 <import>true
</import>
167 <type>longtext
</type>
168 <headerPattern>/(activity.)?detail(s)?$/i
</headerPattern>
169 <comment>Details about the activity (agenda, notes, etc).
</comment>
171 <type>RichTextEditor
</type>
178 <name>status_id
</name>
179 <uniqueName>activity_status_id
</uniqueName>
180 <title>Activity Status
</title>
181 <import>true
</import>
182 <export>true
</export>
183 <headerPattern>/(activity.)?status(.label$)?/i
</headerPattern>
184 <type>int unsigned
</type>
185 <comment>ID of the status this activity is currently in. Foreign key to civicrm_option_value.
</comment>
188 <optionGroupName>activity_status
</optionGroupName>
195 <name>index_status_id
</name>
196 <fieldName>status_id
</fieldName>
200 <name>priority_id
</name>
201 <type>int unsigned
</type>
202 <title>Priority
</title>
203 <export>true
</export>
204 <import>true
</import>
205 <comment>ID of the priority given to this activity. Foreign key to civicrm_option_value.
</comment>
208 <optionGroupName>priority
</optionGroupName>
215 <name>parent_id
</name>
216 <title>Parent Activity ID
</title>
217 <type>int unsigned
</type>
218 <comment>Parent meeting ID (if this is a follow-up item). This is not currently implemented
</comment>
220 <label>Parent Activity
</label>
225 <name>parent_id
</name>
226 <table>civicrm_activity
</table>
229 <onDelete>CASCADE
</onDelete>
234 <uniqueName>activity_is_test
</uniqueName>
237 <import>true
</import>
238 <headerPattern>/(is.)?test(.activity)?/i
</headerPattern>
241 <type>CheckBox
</type>
245 <name>medium_id
</name>
246 <uniqueName>activity_medium_id
</uniqueName>
247 <title>Activity Medium
</title>
248 <type>int unsigned
</type>
249 <default>NULL
</default>
250 <comment>Activity Medium, Implicit FK to civicrm_option_value where option_group = encounter_medium.
</comment>
252 <optionGroupName>encounter_medium
</optionGroupName>
260 <name>index_medium_id
</name>
261 <fieldName>medium_id
</fieldName>
273 <name>relationship_id
</name>
274 <title>Relationship ID
</title>
275 <type>int unsigned
</type>
276 <default>NULL
</default>
277 <comment>FK to Relationship ID
</comment>
279 <label>Relationship
</label>
284 <name>relationship_id
</name>
285 <table>civicrm_relationship
</table>
287 <onDelete>SET NULL
</onDelete>
290 <name>is_current_revision
</name>
291 <title>Is this activity a current revision in versioning chain?
</title>
294 <import>true
</import>
295 <headerPattern>/(is.)?(current.)?(revision|version(ing)?)/i
</headerPattern>
299 <name>index_is_current_revision
</name>
300 <fieldName>is_current_revision
</fieldName>
304 <name>original_id
</name>
305 <type>int unsigned
</type>
306 <title>Original Activity ID
</title>
307 <comment>Activity ID of the first activity record in versioning chain.
</comment>
309 <label>Original Activity
</label>
314 <name>original_id
</name>
315 <table>civicrm_activity
</table>
318 <onDelete>CASCADE
</onDelete>
322 <uniqueName>activity_result
</uniqueName>
324 <title>Result
</title>
326 <comment>Currently being used to store result id for survey activity, FK to option value.
</comment>
330 <name>is_deleted
</name>
331 <uniqueName>activity_is_deleted
</uniqueName>
332 <title>Activity is in the Trash
</title>
335 <import>true
</import>
336 <headerPattern>/(activity.)?(trash|deleted)/i
</headerPattern>
339 <type>CheckBox
</type>
343 <name>index_is_deleted
</name>
344 <fieldName>is_deleted
</fieldName>
348 <name>campaign_id
</name>
349 <uniqueName>activity_campaign_id
</uniqueName>
350 <type>int unsigned
</type>
351 <title>Campaign ID
</title>
352 <import>true
</import>
353 <comment>The campaign for which this activity has been triggered.
</comment>
357 <label>Campaign
</label>
361 <name>campaign_id
</name>
362 <table>civicrm_campaign
</table>
364 <onDelete>SET NULL
</onDelete>
367 <name>engagement_level
</name>
368 <uniqueName>activity_engagement_level
</uniqueName>
369 <type>int unsigned
</type>
370 <title>Engagement Index
</title>
371 <import>true
</import>
372 <comment>Assign a specific level of engagement to this activity. Used for tracking constituents in ladder of engagement.
</comment>
374 <optionGroupName>engagement_index
</optionGroupName>
389 <title>Is Starred
</title>
392 <import>true
</import>
393 <comment>Activity marked as favorite.
</comment>
394 <headerPattern>/(activity.)?(star|favorite)/i
</headerPattern>
397 <type>Checkbox
</type>
401 <name>created_date
</name>
402 <uniqueName>activity_created_date
</uniqueName>
403 <type>timestamp
</type>
404 <comment>When was the activity was created.
</comment>
405 <required>false
</required>
406 <export>true
</export>
407 <default>CURRENT_TIMESTAMP
</default>
409 <label>Created Date
</label>
414 <name>modified_date
</name>
415 <uniqueName>activity_modified_date
</uniqueName>
416 <type>timestamp
</type>
417 <comment>When was the activity (or closely related entity) was created or modified or deleted.
</comment>
418 <required>false
</required>
419 <export>true
</export>
420 <default>CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
</default>
422 <label>Modified Date
</label>