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 »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Fetch Activities and Contact Types
Pages: [1]

Author Topic: Fetch Activities and Contact Types  (Read 494 times)

effex100

  • I’m new here
  • *
  • Posts: 15
  • Karma: 0
  • CiviCRM version: 4.3.5
  • CMS version: Joomla 2.5.9
  • MySQL version: 5.0.96-community
  • PHP version: 5.3
Fetch Activities and Contact Types
June 25, 2012, 10:33:26 am
I have a site that uses an activity processing email account to track emails sent to contacts. This works great and is very helpful.

What's odd about our setup is that we have two contacts for most of our email addresses. We have an organization and an individual sharing an email address in a lot of cases. This hasn't caused a problem for much of what I've been setting up but I've noticed something with the email processing. It only applies the incoming email activity to the individual contact.

Is there a way to change this to either:

Apply the activity to both the individual and the organization

or

Check for a matching organization before checking for an individual and apply the activity to the org?

Thanks for the help.

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Fetch Activities and Contact Types
June 25, 2012, 01:21:07 pm

There is a hook for this :)

hook_civicrm_emailProcessorContact

however i just realized we have not documented it. We'll fix in the next few days or so.

In the meantime, you can check the sample implementation at: drupal/civitest.module.sample

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

demeritcowboy

  • Ask me questions
  • ****
  • Posts: 570
  • Karma: 42
  • CiviCRM version: Always the latest!
  • CMS version: Drupal 6 mostly, still evaluating 7.
  • MySQL version: Mix of 5.0 / 5.1 / 5.5
  • PHP version: 5.3, usually on Windows
Re: Fetch Activities and Contact Types
June 25, 2012, 03:40:25 pm
http://wiki.civicrm.org/confluence/display/CRMDOC42/CiviCRM+hook+specification#CiviCRMhookspecification-hookcivicrmemailProcessorContact

There's also some pseudocode describing the operation of the sample code at http://issues.civicrm.org/jira/browse/CRM-8978

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Fetch Activities and Contact Types

This forum was archived on 2017-11-26.