Answers.Body: <p>There are a couple of ways to accomplish what you want.
  First - since your end goal is displaying smart group data in a View, you can instead just install the <code>civicrm_views_smartgroup</code> module.  See this question: <a href="https://civicrm.stackexchange.com/questions/11200/can-drupal-views-filter-contacts-based-on-smart-groups">Can Drupal Views filter contacts based on Smart Groups</a> </p>
  
  <p>Another way to accomplish what you're trying to do is to add members to the static group using the <a href="https://civicrm.org/extensions/civirules" rel="nofollow noreferrer">CiviRules</a> extension and remove the smart group entirely.  If CiviRules has the correct triggers/rules to accomplish this for your use case, I recommend this approach for performance reasons.</p>
  
  <p>Finally - I might be tempted to try to write some SQL that runs on a timer - either through cron or the <a href="https://civicrm.org/extensions/sql-tasks-extension-configurable-recurring-tasks" rel="nofollow noreferrer">Scheduled SQL Tasks</a> extension.  This is a bit risky - I'm not 100% sure how to guarantee that the smart group cache is populated at the moment your SQL runs.  This is the closest to what you're requesting, but is a risky move that could put your database in an unusable state if you don't know what you're doing.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-11-07T15:30:53.527Z
Answers.Text: Thank you so much. I think 2nd method might be the most suitable option.
Answers.UserDisplayName: Bastiyan
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-11-06T16:27:47.263Z
Answers.LastActivityDate: 2017-11-06T16:27:47.263Z
Answers.UserDisplayName: Jon G - Megaphone Tech
Answers.Body: <p>The only time I had to replace a smart group by a "normal" group was for performance reason when we started to have more than a million contacts.</p>
  
  <p>Otherwise, I'd suggest to use the smart groups as you would use a normal group, and if you have performances issues, start by increasing the smart cache duration and enable the cronjob that automatically re-build them</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-11-06T09:20:53.790Z
Answers.Text: Hi Xavier What I'm trying to do is show CiviCRM group data in Drupal views however there's no clear way of doing this using smart groups. That's why I would like to update the group of contacts using the smart group
Answers.UserDisplayName: Bastiyan
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-11-04T01:00:01.597Z
Answers.LastActivityDate: 2017-11-04T01:00:01.597Z
Answers.UserDisplayName: Xavier
Body: <p>I'm just wondering how can I update a group in CiviCRM using a smart group. Would it be possible to do this via a scheduled job.</p>
  
  <p>Any thoughts would be highly appreciated </p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2017-11-03T18:46:10.750Z
Comments.Text: Could you ask your question slightly differently?  I don't think it's clear what you're trying to do.
Comments.UserDisplayName: Jon G - Megaphone Tech
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2017-11-06T09:20:10.780Z
Comments.Text: Hi John  What I'm trying to do is show CiviCRM group data in Drupal views however there's no clear way of doing this using a smart group. That's why I would like to update the group of contacts using the smart group
Comments.UserDisplayName: Bastiyan
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2017-11-06T16:21:45.530Z
Comments.Text: In that case, your question is actually, "How do I display smart group data in a View?"  That has a different answer.  See below.
Comments.UserDisplayName: Jon G - Megaphone Tech
Tags: <civimember><groups><smartgroups><civicrm-home>
Title: Whats the procedure to update a Group using a Smart group
ThreadText: # Whats the procedure to update a Group using a Smart group
  
  (Asked by: username_0 on 2017-11-03)
  
  I'm just wondering how can I update a group in CiviCRM using a smart group. Would it be possible to do this via a scheduled job.
  
  Any thoughts would be highly appreciated
  
  **Tags:** civimember, groups, smartgroups, civicrm-home
  
  > **Comments:**
  > **username_1**: Could you ask your question slightly differently?  I don't think it's clear what you're trying to do.  
  > **username_0**: Hi John  What I'm trying to do is show CiviCRM group data in Drupal views however there's no clear way of doing this using a smart group. That's why I would like to update the group of contacts using the smart group  
  > **username_1**: In that case, your question is actually, "How do I display smart group data in a View?"  That has a different answer.  See below.  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_1 on 2017-11-06. Score: 0 | Accepted answer
  
  There are a couple of ways to accomplish what you want.
  First - since your end goal is displaying smart group data in a View, you can instead just install the `civicrm_views_smartgroup` module. See this question: [Can Drupal Views filter contacts based on Smart Groups](https://civicrm.stackexchange.com/questions/11200/can-drupal-views-filter-contacts-based-on-smart-groups)
  
  Another way to accomplish what you're trying to do is to add members to the static group using the [CiviRules](https://civicrm.org/extensions/civirules) extension and remove the smart group entirely. If CiviRules has the correct triggers/rules to accomplish this for your use case, I recommend this approach for performance reasons.
  
  Finally - I might be tempted to try to write some SQL that runs on a timer - either through cron or the [Scheduled SQL Tasks](https://civicrm.org/extensions/sql-tasks-extension-configurable-recurring-tasks) extension. This is a bit risky - I'm not 100% sure how to guarantee that the smart group cache is populated at the moment your SQL runs. This is the closest to what you're requesting, but is a risky move that could put your database in an unusable state if you don't know what you're doing.
  
  > **Comments:**
  > **username_0**: Thank you so much. I think 2nd method might be the most suitable option.  
  
  ---
  
  ### Answer by username_2 on 2017-11-04. Score: 0
  
  The only time I had to replace a smart group by a "normal" group was for performance reason when we started to have more than a million contacts.
  
  Otherwise, I'd suggest to use the smart groups as you would use a normal group, and if you have performances issues, start by increasing the smart cache duration and enable the cronjob that automatically re-build them
  
  > **Comments:**
  > **username_0**: Hi username_2 What I'm trying to do is show CiviCRM group data in Drupal views however there's no clear way of doing this using smart groups. That's why I would like to update the group of contacts using the smart group  
  
  ---
  
  