Personalized Community is here!
Quickly customize your community to find the content you seek.
Have questions on moving to the cloud? Visit the Dynamics 365 Migration Community today! Microsoft’s extensive network of Dynamics AX and Dynamics CRM experts can help.
2022 Release Wave 1 PlanDynamics 365 release plan for the 2022 release wave 1 describes all new features releasing from April 2022 through September 2022.
2022 release wave 1 plan
The FastTrack program is designed to help you accelerate your Dynamics 365 deployment with confidence.
FastTrack Community | FastTrack Program | Finance and Operations TechTalks | Customer Engagement TechTalks | Upcoming TechTalks | All TechTalks
The entity contact is only taken as an example.
I would like to know if it is possible to execute the query in some way so that only those records are obtained on which specified field has changed today.
For example, show me all contacts records on which field Company changed value today. Using advanced find I can only find records that have been modified today but I need to look for changes per specific field.
I'm afraid that is not doable using Advanced Find/FetchXml.
Is there some way to make this kind of query? I would need it for reporting purposes. The organization is on premise.
In case you're onprem there is a way.
1. Enable Audit for Contact's Company field.
2. Use SQL queries against Audit tables to grab information that you need.
I'm afraid there is no easier way.
In that case I would have to change Embedded Connection Type from Microsoft Dynamics 365 Fetch to Microsoft SQL Server?There isn't any why I can keep Connection as Fetch XML for whole report and only perform SQL query to create one dataset in order to get the data needed for the report?
Answering your question - it would not be possible to use FetchXml and SQL - you will have to choose one or another.
I have an alternative but that would require small configuration and will not update your historical data. Here is what you can do:
1. Create a field of datetime type on "Contact" entity and call it "Company Last Change Date".
2. Add a workflow that will handle "Update" of "Company" field of "Contact" and populate your new field with current datetime.
After that you can use that field the way you want in Advanced Find/Reports.
Thank you for your answer. That solution with additional field is exactly what I currently use, but there are many fields so I wondered if there is a more elegant solution.I used to create reports through fetch xml, somehow it is my prefered option. I was hoping that somehow I could access that historical data through fetch xml as well.
I'm afraid there is no way to access audit data from FetchXml-based reports.
Business Applications communities