Body: <p>What would be the easiest way to a get the Record Activity screen prefilled with the contacts from a group without having to search before hand?</p>
  <p>I wanted to add a link to the menu which would give me the Record Activity screen prefilled with all the contacts in a certain group. How would I go about doing this? Should I be looking into custom searches/ custom profiles/ do I do the javascript, do I play with search result templates and url parameters?</p>
  <p>Or is there an easier way to achieve what I want?
  I am trying to determine whether this could be done easily enough to justify the shortening of the process of assigning activities to groups.</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2020-12-15T20:20:16.590Z
Comments.Text: there has been quite a lot of discussion about using arguments. this seems to have stalled https://github.com/civicrm/civicrm-core/pull/12455 but perhaps it has already been done so you could add the group_id in to the Adv Search URL. Sorry i can't find a definite solution
Comments.UserDisplayName: petednz - fuzion
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2020-12-16T09:02:57.583Z
Comments.Text: Thanks for the tip. I think I will just create an extension with custom /CRM/Activity/Form/Activity.php form which receives the gid parameter.
Comments.UserDisplayName: Marko
Tags: <activities><groups><search><core>
Title: Assigning activity to an entire group without doing the search beforehand?
ThreadText: # Assigning activity to an entire group without doing the search beforehand?
  
  (Asked by: username_0 on 2020-12-15)
  
  What would be the easiest way to a get the Record Activity screen prefilled with the contacts from a group without having to search before hand?
  
  I wanted to add a link to the menu which would give me the Record Activity screen prefilled with all the contacts in a certain group. How would I go about doing this? Should I be looking into custom searches/ custom profiles/ do I do the javascript, do I play with search result templates and url parameters?
  
  Or is there an easier way to achieve what I want?
  I am trying to determine whether this could be done easily enough to justify the shortening of the process of assigning activities to groups.
  
  **Tags:** activities, groups, search, core
  
  > **Comments:**
  > **username_1**: there has been quite a lot of discussion about using arguments. this seems to have stalled https://github.com/civicrm/civicrm-core/pull/12455 but perhaps it has already been done so you could add the group_id in to the Adv Search URL. Sorry i can't find a definite solution  
  > **username_0**: Thanks for the tip. I think I will just create an extension with custom /CRM/Activity/Form/Activity.php form which receives the gid parameter.  
  
  ---
  
  ## 0 answers
  
  