CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM (Moderator: Dave Greenberg) »
  • I don't understand how Contacts and Activities are related?
Pages: [1]

Author Topic: I don't understand how Contacts and Activities are related?  (Read 681 times)

datakid

  • I post occasionally
  • **
  • Posts: 35
  • Karma: 0
I don't understand how Contacts and Activities are related?
April 05, 2010, 11:25:29 pm
I presumed that:

"added by" = staff/data entry person
"with" = contact with whom the activity took place
"assigned to" = staff/contact that actually will enact the activity. If this field is blank, then the activity is enacted by "added by"

eg a phone call would have datakid as the "added by" (because I entered the data), funnyCam as the "with", because there will be a phone call _with_ funnyCam; and "assigned to" adam because adam will make the phone call
 
am I mistaken?

I added a new activity to a record (the "with" record), with the above data.

When I created a View, that included "contact email" and "display name" I got the details from the "added by" field instead of the expected "with" field.

From this I take it that the activity is primarily linked to the "added by" contact...yep, there it is, there are two other tables, civicrm_activity_assignment and civicrm_activity_target for what I want. Ok. How to get them into View?

I presume it's through a little wrangling of the ~/public_html/sites/all/modules/civicrm/drupal/modules/views/civicrm.views.inc to include the tables and their fields that I want?

datakid

  • I post occasionally
  • **
  • Posts: 35
  • Karma: 0
Re: I don't understand how Contacts and Activities are related?
April 06, 2010, 03:53:18 am
I think the reason I am confused, now that I've done a bit of digging, is that currently the civicrm_activity_target and civicrm_activity_assigned tables aren't available in the Views2 interface, although they do appear in the civicrm.views.inc file mentioned above. I will try to recreate in the demo ...

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM (Moderator: Dave Greenberg) »
  • I don't understand how Contacts and Activities are related?

This forum was archived on 2017-11-26.