Hi Sandeep,
It sounds like you're trying to hide unwanted views for the Email and Chat entities in a model driven app, but you're still seeing at least one view despite your efforts.
In Dynamics 365, views are managed at both the entity level and the app level as you're aware, and sometimes the default behavior can make it tricky to hide all unwanted views. Since you're using a model-driven app, here’s what you can do:
1. Check the App Designer for the Model-Driven App:
- Open the App Designer for your model-driven app (you can do this via the Power Apps maker portal at make.powerapps.com).
- Navigate to the Entity View section for the Email and Chat entities.
- Ensure that only the views you want to display are selected. If there are any unwanted views (like the default "All Emails" or "My Emails"), deselect them.
- Save and publish the app.
2. Verify System Views at the Entity Level:
- Go to the Advanced Settings in Dynamics 365, then under Customizations, select Customize the System.
- Find the Email and Chat entities, and check their Views.
- If there are system views (like "All Emails") that you don’t want to show, you can’t delete them, but you can deactivate them:
- Open the view, click on More Actions > Deactivate.
- Alternatively, you can modify the view’s filter criteria to return no records (e.g., set an impossible condition like "Created On equals 1/1/1900").
- Save and publish your changes.
3. Check for Default Views in the Sitemap:
- In the App Designer, check the Sitemap to see if the Email or Chat entities are directly referenced. Sometimes, the sitemap configuration can force a default view to appear.
- If needed, adjust the sitemap to ensure it aligns with your desired views.
4. Role-Based Security and Views:
- Ensure that the security roles assigned to users (including yourself) don’t have access to views you’re trying to hide.
- Go to Settings> Security > Security Roles, and check the permissions for the Email and Chat entities. You can restrict access to specific views by customizing the role. https://learn.microsoft.com/en-us/power-platform/release-plan/2024wave2/power-platform-governance-administration/share-system-views-security-role
5. Clear Cache and Test:
- After making these changes, clear your browser cache or use a private/incognito window to test the app. Sometimes, cached data can make it seem like the view is still there.
If you’ve already removed all views and still see one, it might be a default system view that’s being enforced by the platform. In that case, you might need to create a custom view with your desired filters and set it as the default for the app, overriding the system view.
I hope this resloves your issue, all the best!
Best regards,
Nikhil Sarpatwari
---
If you found my comment helpful or if this resolves your issue, please acknowledge it by liking the comment or letting me know. Thanks for helping keep the community engaged!