Answers.Body: <p>For the benefit of anyone else who wants to add custom fields to an activity type that isn't in the list: You could create the custom group using the API, either using the explorer or drush. For example:</p>
  
  <pre><code>drush cvapi CustomGroup.create extends=Activity extends_entity_column_value=46 title="SMS testing"
  </code></pre>
  
  <p>where 46 is the activity type ID of Inbound SMS on my system.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-05-15T10:50:17.093Z
Answers.Text: It won't list the activity type in the 'Type' column on the list of custom groups if it's one that doesn't appear in the list, but it'll still be saved.
Answers.UserDisplayName: DaveFF
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-05-15T10:47:27.880Z
Answers.LastActivityDate: 2015-05-15T10:47:27.880Z
Answers.UserDisplayName: DaveFF
Answers.Body: <p>How about adding another activity status? Like "Unread" or "Read".</p>
  
  <p>Depending on how skilled you are, maybe it is possible to have inbound sms set to "Unread" as default. Then your staff could change it to "completed" when they have read it.</p>
  
  <p>If not, you could add the activity status "Read" and then change the status from "Completed" to "Read".</p>
  
  <p>In both ways, you could have a report showing only the default activity status, and after they have changed the status, it diseappers from the report.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-04-28T22:31:41.097Z
Answers.Text: Thanks for your reply! But I don't seem to be able to find a way (in the CiviCRM UI, at least) to add a new activity status - is there a way that I just haven't spotted, or it would it need to be done directly via the database or something?
Answers.UserDisplayName: spidersilk
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-04-29T04:49:43.940Z
Answers.Text: @spidersilk You can certainly do it in the CiviCRM UI. There is a menu for it. If you look into this page I just found, it is really well explained there: http://emphanos.com/new/civicrm-tutorial-post-1/
Answers.UserDisplayName: Flying
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-04-29T05:01:36.240Z
Answers.Text: The explanation on the page I linked to is incorrect in stating that the menu is not listed in the admin menu, because it is there. It is called Options I think (sorry I am not on an English install) Easiest acces is http://yourdomain.com/civicrm/admin/options?reset=1
Answers.UserDisplayName: Flying
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-04-29T14:19:08.723Z
Answers.Text: Perfect, thank you! For anyone else who may be looking, in an English install it's Administer > System Settings > Option Groups (I found it in the menu only after going there via the link you posted).
Answers.UserDisplayName: spidersilk
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-04-28T17:17:45.140Z
Answers.LastActivityDate: 2015-04-28T17:17:45.140Z
Answers.UserDisplayName: Flying
Body: <p>I'm working on a Drupal site that includes a view showing unanswered SMS messages. The view shows activities of the Inbound SMS type that have not been revised or deleted, plus a custom PHP filter that restricts it to inbound SMS activities from contacts who don't have an outbound SMS activity with a later date.</p>
  
  <p>The client would to be able to mark off messages that they don't need to answer, and have those no longer show up in the list - basically a way of marking them as read and not in need of a reply. I tried to add a custom field for this to the Inbound SMS activity type - but it doesn't show up as an option! When I choose activities under the "used for" dropdown on the form for creating a custom field, it brings up a second list of specific activity type, but Inbound SMS isn't on it. </p>
  
  <p>Does anyone know if there's any way to get this activity type to show a custom field? Or failing that, any other ideas for how to provide this functionality (a checkbox for marking SMS messages as read, which can then be used as a filter for the view)?</p>
  
Tags: <drupal><custom-fields><activities><drupal-views><sms>
Title: Is there a way to add a custom field to the Inbound SMS activity type?
ThreadText: # Is there a way to add a custom field to the Inbound SMS activity type?
  
  (Asked by: username_0 on 2015-04-27)
  
  I'm working on a Drupal site that includes a view showing unanswered SMS messages. The view shows activities of the Inbound SMS type that have not been revised or deleted, plus a custom PHP filter that restricts it to inbound SMS activities from contacts who don't have an outbound SMS activity with a later date.
  
  The client would to be able to mark off messages that they don't need to answer, and have those no longer show up in the list - basically a way of marking them as read and not in need of a reply. I tried to add a custom field for this to the Inbound SMS activity type - but it doesn't show up as an option! When I choose activities under the "used for" dropdown on the form for creating a custom field, it brings up a second list of specific activity type, but Inbound SMS isn't on it.
  
  Does anyone know if there's any way to get this activity type to show a custom field? Or failing that, any other ideas for how to provide this functionality (a checkbox for marking SMS messages as read, which can then be used as a filter for the view)?
  
  **Tags:** drupal, custom-fields, activities, drupal-views, sms
  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_2 on 2015-04-28. Score: 4 | Accepted answer
  
  How about adding another activity status? Like "Unread" or "Read".
  
  Depending on how skilled you are, maybe it is possible to have inbound sms set to "Unread" as default. Then your staff could change it to "completed" when they have read it.
  
  If not, you could add the activity status "Read" and then change the status from "Completed" to "Read".
  
  In both ways, you could have a report showing only the default activity status, and after they have changed the status, it diseappers from the report.
  
  > **Comments:**
  > **username_0**: Thanks for your reply! But I don't seem to be able to find a way (in the CiviCRM UI, at least) to add a new activity status - is there a way that I just haven't spotted, or it would it need to be done directly via the database or something?  
  > **username_2**: @username_0 You can certainly do it in the CiviCRM UI. There is a menu for it. If you look into this page I just found, it is really well explained there: http://emphanos.com/new/civicrm-tutorial-post-1/  
  > **username_2**: The explanation on the page I linked to is incorrect in stating that the menu is not listed in the admin menu, because it is there. It is called Options I think (sorry I am not on an English install) Easiest acces is http://yourdomain.com/civicrm/admin/options?reset=1  
  > **username_0**: Perfect, thank you! For anyone else who may be looking, in an English install it's Administer > System Settings > Option Groups (I found it in the menu only after going there via the link you posted).  
  
  ---
  
  ### Answer by username_1 on 2015-05-15. Score: 2
  
  For the benefit of anyone else who wants to add custom fields to an activity type that isn't in the list: You could create the custom group using the API, either using the explorer or drush. For example:
  drush cvapi CustomGroup.create extends=Activity extends_entity_column_value=46 title="SMS testing"
  
  where 46 is the activity type ID of Inbound SMS on my system.
  
  > **Comments:**
  > **username_1**: It won't list the activity type in the 'Type' column on the list of custom groups if it's one that doesn't appear in the list, but it'll still be saved.  
  
  ---
  
  