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

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Answered

Create a view via XML

(0) ShareShare
ReportReport
Posted on by 50

I would like to know if it is possible to create a new view using XML.

For example, I have this query:

<fetch top="50">
<entity name="contact">
<attribute name="fullname" />
<filter>
<condition attribute="fullname" operator="eq" value="Blabla" />
</filter>
</entity>
</fetch>

I want to transform in a view. Is it possible? 

I saw that the views that we create are saved in the database in the savedquery table.

Is there any easy way of inserting a new record with my custom XML or any other way of achieving it? 


--- The XML above is just an example, I'll be using one that there are tables relationship ---

I have the same question (0)
  • Ricardo Jacobsen Profile Picture
    50 on at
    RE: Create a view via XML

    Thank you for the suggestion mate. This will may help more people in future.

  • Verified answer
    Bipin D365 Profile Picture
    28,981 Moderator on at
    RE: Create a view via XML

    Hi,

    You can also create view from fetchXml builder and publish to your instance so that it will be available to your all users to use it from crm..

    jonasr.app/.../

  • Ricardo Jacobsen Profile Picture
    50 on at
    RE: Create a view via XML

    Sorry, this would be for users use it, so I need to create a view inside the CRM, so the user can select and view the data.

    As we cannot go too deep in the table relationship with the advanced filter, I thought of this solution.

    I'll create the XML with XRMtoolbox, but I need transform this in a view to the user.

  • Suggested answer
    Bipin D365 Profile Picture
    28,981 Moderator on at
    RE: Create a view via XML

    Hi,

    Use fetchXml builder tool in xrmtoolbox.

    https://fetchxmlbuilder.com/

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…

Andrés Arias – Community Spotlight

We are honored to recognize Andrés Arias as our Community Spotlight honoree for…

Leaderboard > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
DAnny3211 Profile Picture

DAnny3211 359

#2
Abhilash Warrier Profile Picture

Abhilash Warrier 137 Super User 2025 Season 2

#3
Martin Dráb Profile Picture

Martin Dráb 77 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans