Answers.Body: <p>In the long run we found it easier to add custom attachment fields to Activities.</p>
  
  <p>These are easier to work with in Views and are searchable in the Search Builder.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-04-10T20:27:14.667Z
Answers.LastActivityDate: 2016-04-10T20:27:14.667Z
Answers.UserDisplayName: pmoz
Answers.Body: <p>This might be an answer to a slightly different question, but... in the past, I've used a mix of add-ons to perform a full-text search on activities and their attachments:</p>
  
  <p><a href="https://github.com/civicrm/apachesolr_civiAttachments" rel="nofollow">https://github.com/civicrm/apachesolr_civiAttachments</a></p>
  
  <p>When you run a search with "Search => Full Text" and filter on activities, it will include any matches in PDFs/DOCs/etc that are attached to activities.</p>
  
  <p>That module may be a significant undertaking (e.g. it requires an extra server, <a href="http://lucene.apache.org/solr/" rel="nofollow">Solr</a>, and the documentation is pretty rudimentary), but if you really need it, it might be a piece in the puzzle.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-09-18T05:03:15.087Z
Answers.LastActivityDate: 2015-09-18T05:03:15.087Z
Answers.UserDisplayName: Tim Otten
Answers.Body: <p>I've customized the Activity Report to display which activities have attachments.  I don't think I added a filter to show ONLY records with attachments, but that's just another line or two of code.  I've uploaded a copy to github here: <a href="https://github.com/PalanteJon/activityAttachmentReport/tree/master" rel="nofollow">https://github.com/PalanteJon/activityAttachmentReport/tree/master</a></p>
  
  <p>Note that these aren't the only customizations I've made in this report, but you can search for "attachments" in my code to see how I added attachments to the report.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-09-07T15:59:38.600Z
Answers.Text: Thanks for sharing! I extracted the file-specific bits from your report and also added a filter option: https://gist.github.com/mlutfy/9971f0e2501ef1a0778b5b921965c34c
Answers.UserDisplayName: bgm
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-09-07T16:26:18.977Z
Answers.Text: @bgm - this technique of customizing built-in reports by extending the class is pretty great!  It seems obvious now that I see it, but I'd never thought of it before.
Answers.UserDisplayName: Jon G - Megaphone Tech
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-09-26T14:47:27.380Z
Answers.LastActivityDate: 2015-09-26T14:47:27.380Z
Answers.UserDisplayName: Jon G - Megaphone Tech
Body: <p>Drupal 7.39
  CiviCRM (in this case 4.6.7)</p>
  
  <p>We can't find any way to search for activities with attachments.</p>
  
  <p>Am I missing something obvious?</p>
  
  <p>Similar to this question: <a href="https://civicrm.stackexchange.com/questions/3769/search-contacts-with-attachments">Search contacts with attachments</a></p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-09-17T21:33:47.627Z
Comments.Text: Do you want to mention your CMS in case a solution outside civicrm would be possible
Comments.UserDisplayName: petednz - fuzion
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-09-17T22:18:06.203Z
Comments.Text: Sorry, bad form on my part.  Added above.
Comments.UserDisplayName: pmoz
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-09-17T23:47:53.720Z
Comments.Text: can't see any code for this for Drupal Views anyhow but would be one option to consider if you have some development skills to apply, but that said, would be more useful to have this directly in civicrm. not being much help sorry
Comments.UserDisplayName: petednz - fuzion
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-09-18T00:19:11.847Z
Comments.Text: I am working on some code for views, but couldn't find any reference to attachments in and civi search functions.
Comments.UserDisplayName: pmoz
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-09-18T02:32:38.277Z
Comments.Text: not sure if it helps you but i do know that Views can pull the civi contact image in but no idea if that assists with other files coming in to views
Comments.UserDisplayName: petednz - fuzion
Tags: <activities><attachments>
Title: How do I search for Activity Attachments?
ThreadText: # How do I search for Activity Attachments?
  
  (Asked by: username_0 on 2015-09-17)
  
  Drupal 7.39
  CiviCRM (in this case 4.6.7)
  
  We can't find any way to search for activities with attachments.
  
  Am I missing something obvious?
  
  Similar to this question: [Search contacts with attachments](https://civicrm.stackexchange.com/questions/3769/search-contacts-with-attachments)
  
  **Tags:** activities, attachments
  
  > **Comments:**
  > **username_1**: Do you want to mention your CMS in case a solution outside civicrm would be possible  
  > **username_0**: Sorry, bad form on my part.  Added above.  
  > **username_1**: can't see any code for this for Drupal Views anyhow but would be one option to consider if you have some development skills to apply, but that said, would be more useful to have this directly in civicrm. not being much help sorry  
  > **username_0**: I am working on some code for views, but couldn't find any reference to attachments in and civi search functions.  
  > **username_1**: not sure if it helps you but i do know that Views can pull the civi contact image in but no idea if that assists with other files coming in to views  
  
  ---
  
  ## 3 answers
  
  ### Answer by username_0 on 2016-04-10. Score: 0 | Accepted answer
  
  In the long run we found it easier to add custom attachment fields to Activities.
  
  These are easier to work with in Views and are searchable in the Search Builder.
  
  
  ---
  
  ### Answer by username_2 on 2015-09-18. Score: 1
  
  This might be an answer to a slightly different question, but... in the past, I've used a mix of add-ons to perform a full-text search on activities and their attachments:
  
  <https://github.com/civicrm/apachesolr_civiAttachments>
  
  When you run a search with "Search => Full Text" and filter on activities, it will include any matches in PDFs/DOCs/etc that are attached to activities.
  
  That module may be a significant undertaking (e.g. it requires an extra server, [Solr](http://lucene.apache.org/solr/), and the documentation is pretty rudimentary), but if you really need it, it might be a piece in the puzzle.
  
  
  ---
  
  ### Answer by username_3 on 2015-09-26. Score: 1
  
  I've customized the Activity Report to display which activities have attachments. I don't think I added a filter to show ONLY records with attachments, but that's just another line or two of code. I've uploaded a copy to github here: <https://github.com/PalanteJon/activityAttachmentReport/tree/master>
  
  Note that these aren't the only customizations I've made in this report, but you can search for "attachments" in my code to see how I added attachments to the report.
  
  > **Comments:**
  > **username_4**: Thanks for sharing! I extracted the file-specific bits from your report and also added a filter option: https://gist.github.com/mlutfy/9971f0e2501ef1a0778b5b921965c34c  
  > **username_3**: @username_4 - this technique of customizing built-in reports by extending the class is pretty great!  It seems obvious now that I see it, but I'd never thought of it before.  
  
  ---
  
  