Skip to main content

Notifications

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 11

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.

  • Rahul Rathore Profile Picture
    11 on at
    RE: How to get the old value and new value from audit entity using fetch xml query.

    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>

  • Suggested answer
    Naveen Ganeshe Profile Picture
    3,393 User Group Leader on at

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 293,289 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 232,068 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans