Answers.Body: <p> Austin -&gt; did you install and enable CiviCRM Entity Module?</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-03-07T16:58:45.473Z
Answers.Text: Actually - I originall completely misread your Q! I thought you had separate databases - I now think you may be missing a module☝️
Answers.UserDisplayName: KarinG - Semper IT
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-03-07T20:41:53.220Z
Answers.Text: Thank you, Karin! I hadn't set up CiviCRM Entity on this install because it was included in the "12 steps below" that the documentation said were "not required." I should have tried that! I am now able to get access to the entities in Views. **However**, I created 2 test Contacts and tried to pull their Display Names into a View and I get no results. I've enabled the Contact entity in /civicrm-entity/settings as @Demerit suggested.  The View is set up to "Show: Fields" with "Field: CiviCRM Contact (CiviCRM Entity): Display Name" selected. Is there another obvious thing I'm missing?
Answers.UserDisplayName: Austin Zumbro
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-03-07T23:34:47.487Z
Answers.Text: I guess I should also say that /civicrm/admin/setting/uf?reset=1 doesn't show anything.  When I was setting everything up on separate databases, that step worked fine.  In the current context, I only see "CMS Users Table Name" and "Sync CMS Email" option and that's it.
Answers.UserDisplayName: Austin Zumbro
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-03-08T00:31:39.603Z
Answers.Text: i) You can scratch that CMS Integration step if you have one database; ii) You don’t have to enable the Contact Entity (to get the CiviCRM data into a View) but you do need to clear Drupal caches 2x (at least ) after enabling CiviCRM entity
Answers.UserDisplayName: KarinG - Semper IT
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-03-08T21:25:32.627Z
Answers.Text: Thank you for all your help so far, Karin.  I've flushed all the Drupal caches 10+ times now, and I'm still not getting any results in the View.  Anything else I can try?
Answers.UserDisplayName: Austin Zumbro
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-03-09T01:40:27.713Z
Answers.Text: Share your View (post some screenshots in your Q).
Answers.UserDisplayName: KarinG - Semper IT
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-03-07T01:51:31.533Z
Answers.LastActivityDate: 2021-03-07T16:59:46.903Z
Answers.LastEditDate: 2021-03-07T16:59:46.903Z
Answers.UserDisplayName: KarinG - Semper IT
Body: <p>After running into problems setting up Views integration with CiviCRM installed on a separate database, I gave up and started my project over with CiviCRM installed on the same database as Drupal 9.  This has solved the privileges problem I was having.</p>
  <p><a href="https://civicrm.stackexchange.com/questions/38984/troubleshooting-select-privileges-issue-with-drupal-9-views-integration">Here's my old question about the Privileges problem (which I'd still love an answer to if anyone has one!)</a></p>
  <p>However, I'm now running into an issue where CiviCRM fields aren't showing up as an option in Views. The documentation seems to suggest that if CiviCRM is installed on the same db as Drupal, this data should show up with no further configuration needed.</p>
  <blockquote>
  <p>If your CiviCRM and Drupal are located within the same database the 12
  steps below are not required.</p>
  </blockquote>
  <p>Help!  What am I doing wrong?</p>
  <p><strong>EDIT</strong>:  At @KarinG's suggestion I installed and enabled the CiviCRM Entity module, which has fixed the problem where CiviCRM entities weren't showing up as options in Views.  However, I now have a problem where those entities are not showing up in the results. I've flushed Drupal's caches many times at this point.</p>
  <p><strong>EDIT</strong>:
  <a href="https://i.sstatic.net/v2Oo2.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/v2Oo2.png" alt="Here's a Screenshot of the View" /></a></p>
  <p>No results are returned.</p>
  <p>Thank you in advance for all your help! It really feels like there's just some silly box I've left unchecked somewhere.</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2021-03-06T12:57:55.933Z
Comments.Text: Have you enabled any entities under /admin/structure/civicrm-entity/settings ?
Comments.UserDisplayName: Demerit
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2021-03-09T13:38:29.293Z
Comments.Text: Limit 11 -> remove that;
Comments.UserDisplayName: KarinG - Semper IT
Tags: <drupal-views><drupal-9>
Title: CiviCRM Data not showing in Views - Drupal 9, Shared DB
ThreadText: # CiviCRM Data not showing in Views - Drupal 9, Shared DB
  
  (Asked by: username_0 on 2021-03-06)
  
  After running into problems setting up Views integration with CiviCRM installed on a separate database, I gave up and started my project over with CiviCRM installed on the same database as Drupal 9. This has solved the privileges problem I was having.
  
  [Here's my old question about the Privileges problem (which I'd still love an answer to if anyone has one!)](https://civicrm.stackexchange.com/questions/38984/troubleshooting-select-privileges-issue-with-drupal-9-views-integration)
  
  However, I'm now running into an issue where CiviCRM fields aren't showing up as an option in Views. The documentation seems to suggest that if CiviCRM is installed on the same db as Drupal, this data should show up with no further configuration needed.
  
  > If your CiviCRM and Drupal are located within the same database the 12
  > steps below are not required.
  
  Help! What am I doing wrong?
  
  **EDIT**: At @username_2's suggestion I installed and enabled the CiviCRM Entity module, which has fixed the problem where CiviCRM entities weren't showing up as options in Views. However, I now have a problem where those entities are not showing up in the results. I've flushed Drupal's caches many times at this point.
  
  **EDIT**:
  [![Here's a Screenshot of the View](https://i.sstatic.net/v2Oo2.png)](https://i.sstatic.net/v2Oo2.png)
  
  No results are returned.
  
  Thank you in advance for all your help! It really feels like there's just some silly box I've left unchecked somewhere.
  
  **Tags:** drupal-views, drupal-9
  
  > **Comments:**
  > **username_1**: Have you enabled any entities under /admin/structure/civicrm-entity/settings ?  
  > **username_2**: Limit 11 -> remove that;  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_2 on 2021-03-07. Score: 1
  
  username_0 -> did you install and enable CiviCRM Entity Module?
  
  > **Comments:**
  > **username_2**: Actually - I originall completely misread your Q! I thought you had separate databases - I now think you may be missing a module☝️  
  > **username_0**: Thank you, Karin! I hadn't set up CiviCRM Entity on this install because it was included in the "12 steps below" that the documentation said were "not required." I should have tried that! I am now able to get access to the entities in Views. **However**, I created 2 test Contacts and tried to pull their Display Names into a View and I get no results. I've enabled the Contact entity in /civicrm-entity/settings as @username_1 suggested.  The View is set up to "Show: Fields" with "Field: CiviCRM Contact (CiviCRM Entity): Display Name" selected. Is there another obvious thing I'm missing?  
  > **username_0**: I guess I should also say that /civicrm/admin/setting/uf?reset=1 doesn't show anything.  When I was setting everything up on separate databases, that step worked fine.  In the current context, I only see "CMS Users Table Name" and "Sync CMS Email" option and that's it.  
  > **username_2**: i) You can scratch that CMS Integration step if you have one database; ii) You don’t have to enable the Contact Entity (to get the CiviCRM data into a View) but you do need to clear Drupal caches 2x (at least ) after enabling CiviCRM entity  
  > **username_0**: Thank you for all your help so far, Karin.  I've flushed all the Drupal caches 10+ times now, and I'm still not getting any results in the View.  Anything else I can try?  
  > **username_2**: Share your View (post some screenshots in your Q).  
  
  ---
  
  