Answers.Body: <p>If you're on D7, you can use the <a href="https://www.drupal.org/project/views_civicrm_expose_tables" rel="nofollow noreferrer">Views CiviCRM Expose Tables</a> module.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-02-27T11:47:24.047Z
Answers.Text: I'm running Drupal 7.59 and this module doesn't seem to have an effect. I've installed and enabled it, and when I click the configuration icon next to it, I'm redirected to the views admin page (admin/structure/views). There don't seem to be any new fields available in the views fields.
Answers.UserDisplayName: spontarelliam
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-02-27T17:25:44.303Z
Answers.Text: Have you done this: https://docs.civicrm.org/sysadmin/en/latest/integration/drupal/views/#drupal-7 since enabling the CiviDiscount module?
Answers.UserDisplayName: Aidan
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-02-27T18:07:04.797Z
Answers.Text: I did have the databases set up properly but I hadn't cleared the caches. Clearing all Drupal cache's did the trick, thanks!
Answers.UserDisplayName: spontarelliam
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-02-26T17:20:57.710Z
Answers.LastActivityDate: 2020-02-26T17:20:57.710Z
Answers.UserDisplayName: Jon G - Megaphone Tech
Body: <p>I'm creating a Drupal view and would like to reference the discount end date field created by the CiviDiscount extension, but the only thing associated with that extension that's available as a field is the "Default Discount Fee ID". 
  Is there a way to access the other CiviDiscount fields from Drupal Views?</p>
  
Tags: <drupal-views><cividiscount>
Title: Expose CiviDiscount Fields to Drupal Views
ThreadText: # Expose CiviDiscount Fields to Drupal Views
  
  (Asked by: username_0 on 2020-02-26)
  
  I'm creating a Drupal view and would like to reference the discount end date field created by the CiviDiscount extension, but the only thing associated with that extension that's available as a field is the "Default Discount Fee ID".
  Is there a way to access the other CiviDiscount fields from Drupal Views?
  
  **Tags:** drupal-views, cividiscount
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2020-02-26. Score: 2 | Accepted answer
  
  If you're on D7, you can use the [Views CiviCRM Expose Tables](https://www.drupal.org/project/views_civicrm_expose_tables) module.
  
  > **Comments:**
  > **username_0**: I'm running Drupal 7.59 and this module doesn't seem to have an effect. I've installed and enabled it, and when I click the configuration icon next to it, I'm redirected to the views admin page (admin/structure/views). There don't seem to be any new fields available in the views fields.  
  > **username_2**: Have you done this: https://docs.civicrm.org/sysadmin/en/latest/integration/drupal/views/#drupal-7 since enabling the CiviDiscount module?  
  > **username_0**: I did have the databases set up properly but I hadn't cleared the caches. Clearing all Drupal cache's did the trick, thanks!  
  
  ---
  
  