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 CiviCase (Moderator: Dave Greenberg) »
  • How to ... file on case ... for email activity
Pages: [1]

Author Topic: How to ... file on case ... for email activity  (Read 1915 times)

petednz

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4899
  • Karma: 193
    • Fuzion
  • CiviCRM version: 3.x - 4.x
  • CMS version: Drupal 6 and 7
How to ... file on case ... for email activity
June 10, 2012, 11:41:19 pm
Think I am missing something v obvious.

Send an Email as an Activity - then want to add to a Case.

Don't see a "File on Case' on 4.1.2 - don't see option on Demo either.

I can do this for 'phone calls' - why not for emails?

In Wiki it says

Quote
Optional Enhancements
1. Filing emails under cases
In 3.2 and later, you can file any type of non-case activity on a case by using the action File on Case that appears in activity lists. You may wish to set up the Email Processor as described in Autofiling email activities via EmailProcessor to facilitate filing emails that come into your inbox onto cases.

Note that the File on Case feature is available in earlier versions too, but you will only see it on Inbound Emails and not for other activity types, and it only appears at the bottom of the activity when they are viewed.
Sign up to StackExchange and get free expert advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

pete davis : www.fuzion.co.nz : connect + campaign + communicate

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: How to ... file on case ... for email activity
June 14, 2012, 08:19:22 pm
Do you have any open cases? The action doesn't show if all the cases are closed (or if case is not enabled).

Otherwise it's probably an old limitation. Or maybe the intention is to force sending from manage case or a "send copy" on a case activity.

petednz

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4899
  • Karma: 193
    • Fuzion
  • CiviCRM version: 3.x - 4.x
  • CMS version: Drupal 6 and 7
Re: How to ... file on case ... for email activity
June 17, 2012, 04:01:54 pm
This site is running 4.1.2
The contact does have an Open Case

If i send the Contact an email and then go to Activities there is no option to 'file on case'

Any other suggestions anyone can make?
Sign up to StackExchange and get free expert advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

pete davis : www.fuzion.co.nz : connect + campaign + communicate

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: How to ... file on case ... for email activity
June 18, 2012, 06:29:51 am
It's in the actions dropdown if you do Search -> Find Activities, but I think it's being omitted from action links by CRM_Case_BAO_Case::checkPermission because it's in the list of "singletonNames". If you remove the activity type from that list and then try filing it does that work?

In early 3.x there were some limitations about the "target contact" having to be the same as the client - maybe this was something to prevent those problems. Or maybe there's something special about email activities where copies cause problems?

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: How to ... file on case ... for email activity
July 30, 2012, 07:03:08 pm
I find the code in that function pretty wierd - singleton thrown in with all the others just seems confusing. And then all that conditional setting stuff just to over-ride it afterwards.

Anyway - this works & doesn't seem to change anything except filing emails on cases - I assume people agree being able to do that is a good thing?

Code: [Select]
Index: CRM/Case/BAO/Case.php
===================================================================
--- CRM/Case/BAO/Case.php (revision 41766)
+++ CRM/Case/BAO/Case.php (working copy)
@@ -2770,10 +2770,13 @@
       $allowEditNames = array('Open Case');
 
       // do not allow File on Case
-      $doNotFileNames = array('Open Case', 'Change Case Type', 'Change Case Status', 'Change Case Start Date');
+      $doNotFileNames = array('Open Case', 'Change Case Type', 'Change Case Status', 'Change Case Start Date','Reassigned Case', 'Merge Case', 'Link Cases', 'Assign Case Role');
 
       if (in_array($actTypeName, $singletonNames)) {
         $allow = FALSE;
+        if ($operation == 'File On Case') {
+          $allow = (in_array($actTypeName, $doNotFileNames)) ? FALSE : TRUE;
+        }
         if (in_array($operation, $actionOperations)) {
           $allow = TRUE;
           if ($operation == 'edit') {
Make today the day you step up to support CiviCRM and all the amazing organisations that are using it to improve our world - http://civicrm.org/contribute

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviCase (Moderator: Dave Greenberg) »
  • How to ... file on case ... for email activity

This forum was archived on 2017-11-26.