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 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)
  • Suggested answer
    Bipin D365 Profile Picture
    28,983 Moderator on at

    Hi,

    Use fetchXml builder tool in xrmtoolbox.

    https://fetchxmlbuilder.com/

  • Ricardo Jacobsen Profile Picture
    50 on at

    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.

  • Verified answer
    Bipin D365 Profile Picture
    28,983 Moderator on at

    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

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

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 365 | Integration, Dataverse, and general topics

#1
Martin Dráb Profile Picture

Martin Dráb 46 Most Valuable Professional

#2
Pallavi Phade Profile Picture

Pallavi Phade 33

#3
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 28 Super User 2025 Season 2

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans