Notifications
Announcements
No record found.
I've written a Fetch XML query and I now want to import it into the Advanced Find View as a Saved query and see the results. How do you do this ? thank you.
*This post is locked for comments
From looking into this , it looks like I have to import the Fetchxml as part of a solution. I've already exported the Default customizations.xml. Is it possible just to import Fetchxml query and not the entire customizations.xml into CRM ?
If you are using CRM 2016, create a solution that includes only the system view with the same columns as your fetchxml as a starting point, export the solution, extract customization.xml from the zip file, replace the original fetchxml with your fetchxml, add customization.xml back in the zip file, then import it.
Create new view programmatically msdn.microsoft.com/.../gg594431.aspx
This looks good, but how does one put the C# code into the CRM application ?
Unless you're a developer I'd forget about trying to programmatically create views. Instead it may be worth you using the View Designer within XrmToolBox. Although you cannot create a view from scratch you can create a new view within CRM (only needs to consist of 1 column for your chosen entity), open it in View Designer, Click Edit XML and then paste in what you've got, overwriting that single column. Also a lot less tedious that amending the XML from an exported solution or writing C#.
www.xrmtoolbox.com/download.html
Create a console application and add your fetch xml. It will create your view. Uriy has already given the link. Please refer that.
Thanks,
Saroj
No code solution. Use this trick to construct Advanced find query from a fetchxml: www.linkedin.com/.../generate-fetchxml-condition-crm-advanced-find-using-query-kumar
Then you can save as personal view or recreate as a system view.
Thanks for this direction.
Hello,
pls review this article,
https://www.crmjetty.com/blog/how-to-create-and-save-fetchxmlquery-from-dynamics-365/
I hope it helps,Thanks.Please mark as verified if the answer is helpful. Welcome to join hot discussions in Dynamics 365
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.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
SA-08121319-0 4
Calum MacFarlane 4
Alex Fun Wei Jie 2