Answers.Body: <p>The key functionality to do this was added in CiviCRM 4.7.25, with <a href="https://issues.civicrm.org/jira/projects/CRM/issues/CRM-20630" rel="nofollow noreferrer">CRM-20630</a>.</p>
  
  <p>My understanding is that it's <em>almost</em> but not quite what you need.  This allows you to pass variables through in the Activity Search URL, but it won't generate the URL for you - you'll have to figure the URL out for your search.  A extension to auto-generate the URL seems like a worthy project though.</p>
  
  <p>The feature doesn't seem to be documented yet, but you can see examples <a href="https://github.com/civicrm/civicrm-core/pull/10957" rel="nofollow noreferrer">on Github</a>.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-11-03T18:42:24.133Z
Answers.LastActivityDate: 2017-11-03T18:42:24.133Z
Answers.UserDisplayName: Jon G - Megaphone Tech
Answers.Body: <p>Look under contacts -> 'custom search' for something that matches. If that doesn't get you something then it may be time to ask a partner to build you something bespoke, or upgrade CiviCRM for you.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-10-20T21:43:48.000Z
Answers.LastActivityDate: 2016-10-26T22:51:57.317Z
Answers.LastEditDate: 2016-10-26T22:51:57.317Z
Answers.UserDisplayName: JohnFF
Answers.Body: <p>You should be able to save it as a (contact) Smart Group. Then you would need to click 'edit Smart Group criteria' and reset the search to 'display as Activities' to get what you need I think</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-11-21T19:14:32.703Z
Answers.LastActivityDate: 2016-11-21T19:14:32.703Z
Answers.UserDisplayName: petednz - fuzion
Answers.Body: <p>Each time you create a smart group (with its gid), you create an associated saved-search (with an ssid).</p>
  
  <p>Both have their own URL, that you can use to display their result :</p>
  
  <p><a href="https://yoursite/civicrm/group/search?force=1&amp;context=smog&amp;gid=30" rel="nofollow noreferrer">https://yoursite/civicrm/group/search?force=1&amp;context=smog&amp;gid=30</a>
  or
  <a href="https://yoursite/civicrm/contact/search/advanced?force=1&amp;reset=1&amp;ssID=10&amp;context=advanced" rel="nofollow noreferrer">https://yoursite/civicrm/contact/search/advanced?force=1&amp;reset=1&amp;ssID=10&amp;context=advanced</a></p>
  
  <p>But they don't provide the same result : particularly, with the saved search, you can use a custom Profile to display your list, while the smart group will only display a "default view" (as far as I can see it).</p>
  
  <p>You can find the link gid&lt;>ssid in the civicrm_group table (I don't know if and where you can find it in the UI, nor find a saved-search ssid)</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-11-21T16:46:33.620Z
Answers.LastActivityDate: 2016-11-21T16:46:33.620Z
Answers.UserDisplayName: Jacques-Marie Moranne
Body: <p>After using Advanced Search to create a pretty detailed search on activities, I need to save it.  If my search results were contacts, I could create a smart group based on the search which would essentially make the search permanently available as suggested here: <a href="https://civicrm.stackexchange.com/questions/599/saving-advanced-searches-for-later-use">Saving Advanced Searches for later use</a></p>
  
  <p>However, my search is <strong>on activities and displays activities</strong>.  I need to perform this search frequently and there is no corresponding tool like smart groups for activities.</p>
  
  <p>I also need to be able to use the <strong>Batch Update Activities by Profile</strong> action on the search results which precludes me from simply creating a report and saving that.  </p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-10-21T08:08:17.757Z
Comments.Text: If you save it as a (contact) Smart Group then is the problem that it means you have to click 'edit SG criteria' each time and reset the search to 'display as Activities' to get what you need?
Comments.UserDisplayName: petednz - fuzion
Tags: <civireport><activities><custom-search>
Title: Can you save an advanced activity search?
ThreadText: # Can you save an advanced activity search?
  
  (Asked by: username_0 on 2016-09-17)
  
  After using Advanced Search to create a pretty detailed search on activities, I need to save it. If my search results were contacts, I could create a smart group based on the search which would essentially make the search permanently available as suggested here: [Saving Advanced Searches for later use](https://civicrm.stackexchange.com/questions/599/saving-advanced-searches-for-later-use)
  
  However, my search is **on activities and displays activities**. I need to perform this search frequently and there is no corresponding tool like smart groups for activities.
  
  I also need to be able to use the **Batch Update Activities by Profile** action on the search results which precludes me from simply creating a report and saving that.
  
  **Tags:** civireport, activities, custom-search
  
  > **Comments:**
  > **username_1**: If you save it as a (contact) Smart Group then is the problem that it means you have to click 'edit SG criteria' each time and reset the search to 'display as Activities' to get what you need?  
  
  ---
  
  ## 4 answers
  
  ### Answer by username_2 on 2017-11-03. Score: 2
  
  The key functionality to do this was added in CiviCRM 4.7.25, with [CRM-20630](https://issues.civicrm.org/jira/projects/CRM/issues/CRM-20630).
  
  My understanding is that it's *almost* but not quite what you need. This allows you to pass variables through in the Activity Search URL, but it won't generate the URL for you - you'll have to figure the URL out for your search. A extension to auto-generate the URL seems like a worthy project though.
  
  The feature doesn't seem to be documented yet, but you can see examples [on Github](https://github.com/civicrm/civicrm-core/pull/10957).
  
  
  ---
  
  ### Answer by username_3 on 2016-10-20. Score: 1
  
  Look under contacts -> 'custom search' for something that matches. If that doesn't get you something then it may be time to ask a partner to build you something bespoke, or upgrade CiviCRM for you.
  
  
  ---
  
  ### Answer by username_1 on 2016-11-21. Score: 0
  
  You should be able to save it as a (contact) Smart Group. Then you would need to click 'edit Smart Group criteria' and reset the search to 'display as Activities' to get what you need I think
  
  
  ---
  
  ### Answer by username_4 on 2016-11-21. Score: 0
  
  Each time you create a smart group (with its gid), you create an associated saved-search (with an ssid).
  
  Both have their own URL, that you can use to display their result :
  
  <https://yoursite/civicrm/group/search?force=1&context=smog&gid=30>
  or
  <https://yoursite/civicrm/contact/search/advanced?force=1&reset=1&ssID=10&context=advanced>
  
  But they don't provide the same result : particularly, with the saved search, you can use a custom Profile to display your list, while the smart group will only display a "default view" (as far as I can see it).
  
  You can find the link gid<>ssid in the civicrm\_group table (I don't know if and where you can find it in the UI, nor find a saved-search ssid)
  
  
  ---
  
  