Answers.Body: <p>The custom search called Activity Search shouldn't be too hard to update. (See Find - Custom Searches - Activity Search. The file is CRM/Contact/Form/Search/Custom/ActivitySearch.php.) It already includes some partial case-awareness.</p>
  
  <p>In fact, if you run it and then select all records, and then from the actions dropdown choose export contacts (yes, contacts), it will then export the activity records and there'll be an unnamed column that has the case id. There's 3 unnamed columns - the last one is case id, and it's blank if it's not a case activity.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-02-26T17:55:36.810Z
Answers.Text: Thank you. This is useful to know. We work predominantly in Drupal so I'm guessing  views are probably the best way of getting to this information. Just wondering if there was anything in the user interface I'd missed. (Not really a coder)
Answers.UserDisplayName: Craig Almond
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-02-26T15:49:45.373Z
Answers.LastActivityDate: 2019-02-26T15:49:45.373Z
Answers.UserDisplayName: Demerit
Body: <p>In Activity Detail Reports I can set a filter to include or exclude case activities.</p>
  
  <p>Is there a way of filtering activity searches in a similar fashion?</p>
  
Tags: <civicase><activities><search>
Title: How to identify case activities in find activities or advanced search
ThreadText: # How to identify case activities in find activities or advanced search
  
  (Asked by: username_0 on 2019-02-26)
  
  In Activity Detail Reports I can set a filter to include or exclude case activities.
  
  Is there a way of filtering activity searches in a similar fashion?
  
  **Tags:** civicase, activities, search
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2019-02-26. Score: 1
  
  The custom search called Activity Search shouldn't be too hard to update. (See Find - Custom Searches - Activity Search. The file is CRM/Contact/Form/Search/Custom/ActivitySearch.php.) It already includes some partial case-awareness.
  
  In fact, if you run it and then select all records, and then from the actions dropdown choose export contacts (yes, contacts), it will then export the activity records and there'll be an unnamed column that has the case id. There's 3 unnamed columns - the last one is case id, and it's blank if it's not a case activity.
  
  > **Comments:**
  > **username_0**: Thank you. This is useful to know. We work predominantly in Drupal so I'm guessing  views are probably the best way of getting to this information. Just wondering if there was anything in the user interface I'd missed. (Not really a coder)  
  
  ---
  
  