Answers.Body: <p>You USED to be able to do this but the system was changed a little over a year ago so that it now removes the original from the non-case side - see <a href="https://civicrm.stackexchange.com/q/27641/181">Items not showing up on activity log</a>.</p>
  
  <p>There is the copy-to-case action for most activities on a case but it's not available for Emails/Inbound Emails. The reason might be that historically the "spirit" of CiviCase was to prevent something that might be challenged legally, i.e. if someone sends you an email it shouldn't be altered, to preserve the record, and that got applied broadly since internally it's similar code to other actions. You could try temporarily removing this line in CRM/Case/BAO/Case.php and see what breaks: <a href="https://github.com/civicrm/civicrm-core/blob/5.18.3/CRM/Case/BAO/Case.php#L2621" rel="nofollow noreferrer">https://github.com/civicrm/civicrm-core/blob/5.18.3/CRM/Case/BAO/Case.php#L2621</a>. You might also need to grant the "edit inbound email basic information" permission in your CMS's permissions to see the action link if you aren't the admin user, but I don't think it's needed.</p>
  
  <p>If you're comfortable with editing the database directly, find the internal activity id (hover over the view link on manage case and it's the number after the <code>aid=</code>), and then you can do <code>DELETE FROM civicrm_case_activity WHERE case_id=1 AND activity_id=2</code>, where you replace 1 and 2 with the actual case_id and activity_id. That should unfile it.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-10-16T11:54:27.253Z
Answers.LastActivityDate: 2019-10-16T12:07:38.517Z
Answers.LastEditDate: 2019-10-16T12:07:38.517Z
Answers.UserDisplayName: Demerit
Answers.Body: <p>I do not think there is a way in the user interface to unlink an activity from a case. AFAIK you can also not record a single activity in many cases.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-10-16T06:54:06.903Z
Answers.LastActivityDate: 2019-10-16T06:54:06.903Z
Answers.UserDisplayName: ErikH - CiviCooP
Body: <p>I have an Email activity that I sent to several contacts.  Each of those contacts has an active case open.  My intention was to file that email on each contact's case so that I see it when I review the case history.  When I open the email activity, I see one email with 7 recipients.</p>
  
  <p>After filing the e-mail on the first contact's case, it has disappeared from the activity view of all the other contacts.</p>
  
  <p>My first inclination was to try to "un-file" it from the first contact's case.  But I don't see an un-file button when looking at the case.</p>
  
  <p>So...questions:</p>
  
  <ol>
  <li><p>Is it possible to un-file an activity from a case?  How?</p></li>
  <li><p>Is it possible to file the same activity record against multiple cases?</p></li>
  </ol>
  
  <p>Thank you!</p>
  
Tags: <civicase>
Title: How to remove an activity from a case or file an activity on several cases
ThreadText: # How to remove an activity from a case or file an activity on several cases
  
  (Asked by: username_0 on 2019-10-16)
  
  I have an Email activity that I sent to several contacts. Each of those contacts has an active case open. My intention was to file that email on each contact's case so that I see it when I review the case history. When I open the email activity, I see one email with 7 recipients.
  
  After filing the e-mail on the first contact's case, it has disappeared from the activity view of all the other contacts.
  
  My first inclination was to try to "un-file" it from the first contact's case. But I don't see an un-file button when looking at the case.
  
  So...questions:
  
  1. Is it possible to un-file an activity from a case? How?
  2. Is it possible to file the same activity record against multiple cases?
  
  Thank you!
  
  **Tags:** civicase
  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_1 on 2019-10-16. Score: 1
  
  You USED to be able to do this but the system was changed a little over a year ago so that it now removes the original from the non-case side - see [Items not showing up on activity log](https://civicrm.stackexchange.com/q/27641/181).
  
  There is the copy-to-case action for most activities on a case but it's not available for Emails/Inbound Emails. The reason might be that historically the "spirit" of CiviCase was to prevent something that might be challenged legally, i.e. if someone sends you an email it shouldn't be altered, to preserve the record, and that got applied broadly since internally it's similar code to other actions. You could try temporarily removing this line in CRM/Case/BAO/Case.php and see what breaks: <https://github.com/civicrm/civicrm-core/blob/5.18.3/CRM/Case/BAO/Case.php#L2621>. You might also need to grant the "edit inbound email basic information" permission in your CMS's permissions to see the action link if you aren't the admin user, but I don't think it's needed.
  
  If you're comfortable with editing the database directly, find the internal activity id (hover over the view link on manage case and it's the number after the `aid=`), and then you can do `DELETE FROM civicrm_case_activity WHERE case_id=1 AND activity_id=2`, where you replace 1 and 2 with the actual case\_id and activity\_id. That should unfile it.
  
  
  ---
  
  ### Answer by username_2 on 2019-10-16. Score: 0
  
  I do not think there is a way in the user interface to unlink an activity from a case. AFAIK you can also not record a single activity in many cases.
  
  
  ---
  
  