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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Suggested Answer

How to get the old value and new value from audit entity using fetch xml query.

(0) ShareShare
ReportReport
Posted on by 23

How to get the old value and new value from audit entity using fetch xml query.

We are using the power automate for generate the pdf report for audit entity but we are not able to get the old value from audit using xrm.

I have the same question (0)
  • Suggested answer
    Naveen Ganeshe Profile Picture
    3,397 User Group Leader on at
  • Rahul Rathore Profile Picture
    23 on at

    Hi Naveen,

    Thanks for your reply. We are  using this query to get the list from audit in Ms flow. I want the old value and new value with this query .

    <fetch>

     <entity name="audit" >

       <attribute name="regardingobjectid" />

       <attribute name="auditid" />

       <attribute name="action" />

       <attribute name="objectidname" />

       <attribute name="createdon" />

       <attribute name="objectid" />

       <attribute name="attributemask" />

       <attribute name="objecttypecode" />

       <attribute name="userid" />

       <attribute name="useradditionalinfo" />

       <attribute name="useridname" />

       <filter>

         <condition attribute="objecttypecode" operator="eq" value="3" />

         <condition attribute="createdon" operator="yesterday" />

       </filter>

       <link-entity name="opportunity" from="opportunityid" to="objectid" >

         <attribute name="ig1_projectnumber" />

         <attribute name="new_estprojectcompletion" />

         <attribute name="ig1_bestsalesestimate" />

         <attribute name="estimatedclosedate" />

         <attribute name="ig1_salesstagenew" />

         <attribute name="statecode" />

         <filter>

           <condition attribute="statecode" operator="eq" value="0" />

         </filter>

       </link-entity>

     </entity>

    </fetch>

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
ManoVerse Profile Picture

ManoVerse 184 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 125

#3
CU11031447-0 Profile Picture

CU11031447-0 100

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans