Dynamics 365 FetchXML is a powerful tool for querying data from Dataverse within Power Automate. It allows you to retrieve specific records based on your criteria. In this article, we’ll cover how to leverage Views to create a FetchXML query and seamlessly integrate it into your Dynamics 365 flows.
We will leverage a FetchXML query to get us a list of Enabled Users, who own Active Leads that have not been modified in the past seven days. We will then utilize the generated query in a Power Automate flow.
FetchXML is a proprietary XML-based query language used to retrieve data from Dataverse. It’s commonly employed for querying records, defining views in model-driven apps, and supporting reporting capabilities.




Open the recently downloaded FetchXML.

For this scenario, we want to create an automation that runs weekly and lists Users who own active leads that have not been modified in the past week.




Utilizing a Dynamics 365 FetchXML query in your Power Automate flows is an incredibly useful tool to clearly define the records you are trying to work with. Now you can seamlessly utilize your FetchXML query generated from a View within Power Automate.
Have any questions about using FetchXML queries? Reach out to our Dynamics 365 experts at any time!
This publication contains general information only and Sikich is not, by means of this publication, rendering accounting, business, financial, investment, legal, tax, or any other professional advice or services. This publication is not a substitute for such professional advice or services, nor should you use it as a basis for any decision, action or omission that may affect you or your business. Before making any decision, taking any action or omitting an action that may affect you or your business, you should consult a qualified professional advisor. In addition, this publication may contain certain content generated by an artificial intelligence (AI) language model. You acknowledge that Sikich shall not be responsible for any loss sustained by you or any person who relies on this publication.