web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

How can I retrieve list of all views in a organization? - to detect duplicate view

(0) ShareShare
ReportReport
Posted on by

How can I retrieve list of all views in a organization?

Somehow CRM messed up with duplicate views (views with same name).

If possible, I like to query against DB and retrieve all views in a organization. It will be easy for me to identifies the duplication.

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    razdynamics Profile Picture
    17,308 User Group Leader on at

    Hi Sky

    The XRM Toolbox provides free utilitites to help you solve your issues  www.xrmtoolbox.com/download.html

    •View Layout Replicator

    •View Transfer Tool

    github.com/.../Available-plugins-for-XrmToolBox

    Hope that helps :)

  • Community Member Profile Picture
    on at

    Thank you for the quick response!!!

    Your suggestion is one way to resolve the issue. Thank you.

    But, I have to click each entity one by one. If I can query against DB, I can export to excel and identify the duplicate right away on entire organization.

    Somehow duplicate happens often due to big project with multiple developers, I need quick solution to monitor :)

  • Turlapati Vishnu Nandan Profile Picture
    336 on at

    You can go to advanced find in CRM and search for views. There you can find all the list of views. You may delete them accordingly from them. If you want to do batch deletion you may try leveraging the APIs.

    Do let me know if you need further help.

  • Thomas Daly Profile Picture
    10 on at

    I noticed this view doesn't tell you the primary entity the view is associated to. There is however an attribute you can add to a custom fetch that will include the primary field: "fetchxml". If you parse the contents of this field, you should see a reference to the primary entity for most views.

    Here's an example of the custom fetch:

    <fetch mapping="logical" output-format="xml-platform" version="1.0" distinct="false">

     <entity name="savedquery">  

       <attribute name="fetchxml" />    

       <attribute name="name" />

       <attribute name="description" />

     </entity>

    </fetch>

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans