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>
11 <uniqueName>activity_id
</uniqueName>
12 <title>Activity ID
</title>
14 <type>int unsigned
</type>
15 <required>true
</required>
16 <comment>Unique Other Activity ID
</comment>
22 <autoincrement>true
</autoincrement>
25 <name>source_contact_id
</name>
26 <type>int unsigned
</type>
27 <title>Source Contact
</title>
29 <headerPattern>/(activity.)?source(.contact(.id)?)?/i
</headerPattern>
30 <comment>Contact ID of the person scheduling or logging this Activity. Usually the authenticated user.
</comment>
35 <name>source_contact_id
</name>
36 <table>civicrm_contact
</table>
40 <onDelete>SET NULL
</onDelete>
43 <name>UI_source_contact_id
</name>
44 <fieldName>source_contact_id
</fieldName>
50 <name>source_record_id
</name>
51 <type>int unsigned
</type>
52 <title>Source Record
</title>
53 <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>
57 <name>UI_source_record_id
</name>
58 <fieldName>source_record_id
</fieldName>
62 <name>activity_type_id
</name>
63 <title>Activity Type ID
</title>
65 <type>int unsigned
</type>
66 <required>true
</required>
69 <headerPattern>/(activity.)?type(.id$)/i
</headerPattern>
70 <comment>FK to civicrm_option_value.id, that has to be valid, registered activity type.
</comment>
73 <optionGroupName>activity_type
</optionGroupName>
80 <name>UI_activity_type_id
</name>
81 <fieldName>activity_type_id
</fieldName>
86 <name>target_entity_table
</name>
89 <required>true
</required>
90 <comment>Name of table where item being referenced is stored.
</comment>
96 <name>target_entity_id
</name>
97 <type>int unsigned
</type>
98 <required>true
</required>
99 <comment>Foreign key to the referenced item.
</comment>
106 <uniqueName>activity_subject
</uniqueName>
108 <title>Subject
</title>
110 <comment>The subject/purpose/short description of the activity.
</comment>
111 <import>true
</import>
112 <headerPattern>/(activity.)?subject/i
</headerPattern>
121 <name>scheduled_date
</name>
122 <type>datetime
</type>
123 <comment>Date and time meeting is scheduled to occur.
</comment>
129 <name>activity_date_time
</name>
130 <import>true
</import>
131 <title>Activity Date
</title>
132 <type>datetime
</type>
133 <headerPattern>/(activity.)?date(.time$)?/i
</headerPattern>
134 <comment>Date and time this activity is scheduled to occur. Formerly named scheduled_date_time.
</comment>
136 <type>Select Date
</type>
137 <formatType>activityDateTime
</formatType>
142 <name>due_date_time
</name>
143 <type>datetime
</type>
144 <comment>Date and time this activity is due.
</comment>
149 <name>duration_hours
</name>
150 <type>int unsigned
</type>
151 <comment>Planned or actual duration of meeting - hours.
</comment>
157 <name>duration_minutes
</name>
158 <type>int unsigned
</type>
159 <comment>Planned or actual duration of meeting - minutes.
</comment>
165 <name>duration
</name>
166 <uniqueName>activity_duration
</uniqueName>
167 <title>Duration
</title>
168 <import>true
</import>
169 <type>int unsigned
</type>
170 <headerPattern>/(activity.)?duration(s)?$/i
</headerPattern>
171 <comment>Planned or actual duration of activity expressed in minutes. Conglomerate of former duration_hours and duration_minutes.
</comment>
179 <name>location
</name>
180 <uniqueName>activity_location
</uniqueName>
181 <title>Location
</title>
182 <import>true
</import>
185 <headerPattern>/(activity.)?location$/i
</headerPattern>
186 <comment>Location of the activity (optional, open text).
</comment>
194 <name>phone_id
</name>
195 <type>int unsigned
</type>
196 <title>Phone (called) ID
</title>
197 <comment>Phone ID of the number called (optional - used if an existing phone number is selected).
</comment>
200 <type>EntityRef
</type>
204 <name>phone_id
</name>
205 <table>civicrm_phone
</table>
208 <onDelete>SET NULL
</onDelete>
212 <name>phone_number
</name>
213 <title>Phone (called) Number
</title>
216 <comment>Phone number in case the number does not exist in the civicrm_phone table.
</comment>
225 <uniqueName>activity_details
</uniqueName>
226 <title>Details
</title>
227 <import>true
</import>
228 <type>longtext
</type>
229 <headerPattern>/(activity.)?detail(s)?$/i
</headerPattern>
230 <comment>Details about the activity (agenda, notes, etc).
</comment>
232 <type>RichTextEditor
</type>
242 <title>Status
</title>
243 <values>Scheduled, Completed
</values>
244 <comment>What is the status of this meeting? Completed meeting status results in activity history entry.
</comment>
250 <name>status_id
</name>
251 <uniqueName>activity_status_id
</uniqueName>
252 <title>Activity Status
</title>
253 <import>true
</import>
254 <export>false
</export>
255 <headerPattern>/(activity.)?status(.label$)?/i
</headerPattern>
256 <type>int unsigned
</type>
257 <comment>ID of the status this activity is currently in. Foreign key to civicrm_option_value.
</comment>
260 <optionGroupName>activity_status
</optionGroupName>
267 <name>priority_id
</name>
268 <type>int unsigned
</type>
269 <title>Priority
</title>
270 <comment>ID of the priority given to this activity. Foreign key to civicrm_option_value.
</comment>
273 <optionGroupName>priority
</optionGroupName>
280 <name>parent_id
</name>
281 <title>Parent Activity Id
</title>
282 <type>int unsigned
</type>
283 <comment>Parent meeting ID (if this is a follow-up item). This is not currently implemented
</comment>
287 <name>parent_id
</name>
288 <table>civicrm_activity
</table>
291 <onDelete>CASCADE
</onDelete>
297 <uniqueName>activity_is_test
</uniqueName>
300 <import>true
</import>
301 <headerPattern>/(is.)?test(.activity)?/i
</headerPattern>
308 <name>medium_id
</name>
309 <uniqueName>activity_medium_id
</uniqueName>
310 <title>Activity Medium
</title>
311 <type>int unsigned
</type>
312 <default>NULL
</default>
313 <comment>Activity Medium, Implicit FK to civicrm_option_value where option_group = encounter_medium.
</comment>
315 <optionGroupName>encounter_medium
</optionGroupName>
323 <name>index_medium_id
</name>
324 <fieldName>medium_id
</fieldName>
335 <name>relationship_id
</name>
336 <title>Relationship Id
</title>
337 <type>int unsigned
</type>
338 <default>NULL
</default>
339 <comment>FK to Relationship ID
</comment>
343 <name>relationship_id
</name>
344 <table>civicrm_relationship
</table>
346 <onDelete>SET NULL
</onDelete>
349 <name>is_current_revision
</name>
350 <title>Is this activity a current revision in versioning chain?
</title>
353 <import>true
</import>
354 <headerPattern>/(is.)?(current.)?(revision|version(ing)?)/i
</headerPattern>
357 <type>CheckBox
</type>
361 <name>index_is_current_revision
</name>
362 <fieldName>is_current_revision
</fieldName>
366 <name>original_id
</name>
367 <type>int unsigned
</type>
368 <title>Original Activity ID
</title>
369 <comment>Activity ID of the first activity record in versioning chain.
</comment>
373 <name>original_id
</name>
374 <table>civicrm_activity
</table>
377 <onDelete>CASCADE
</onDelete>
380 <name>UI_original_id
</name>
381 <fieldName>original_id
</fieldName>
387 <uniqueName>activity_result
</uniqueName>
389 <title>Result
</title>
391 <comment>Currently being used to store result id for survey activity, FK to option value.
</comment>
398 <name>is_deleted
</name>
399 <uniqueName>activity_is_deleted
</uniqueName>
400 <title>Activity is in the Trash
</title>
403 <import>true
</import>
404 <headerPattern>/(activity.)?(trash|deleted)/i
</headerPattern>
411 <name>index_is_deleted
</name>
412 <fieldName>is_deleted
</fieldName>
416 <name>campaign_id
</name>
417 <uniqueName>activity_campaign_id
</uniqueName>
418 <type>int unsigned
</type>
419 <title>Campaign
</title>
420 <import>true
</import>
421 <comment>The campaign for which this activity has been triggered.
</comment>
423 <table>civicrm_campaign
</table>
424 <keyColumn>id
</keyColumn>
425 <labelColumn>title
</labelColumn>
429 <type>CheckBox
</type>
433 <name>campaign_id
</name>
434 <table>civicrm_campaign
</table>
436 <onDelete>SET NULL
</onDelete>
439 <name>engagement_level
</name>
440 <uniqueName>activity_engagement_level
</uniqueName>
441 <type>int unsigned
</type>
442 <title>Engagement Index
</title>
443 <import>true
</import>
444 <comment>Assign a specific level of engagement to this activity. Used for tracking constituents in ladder of engagement.
</comment>
446 <optionGroupName>engagement_index
</optionGroupName>
464 <title>Is Starred
</title>
467 <import>true
</import>
468 <comment>Activity marked as favorite.
</comment>
469 <headerPattern>/(activity.)?(star|favorite)/i
</headerPattern>