Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Suggested answer

get Field Audit history like modifiedby sdk

(0) ShareShare
ReportReport
Posted on by 7,316

Hi,

I am trying to find some approaches to get details of a field on the form through sdk. Specifically who modified the field and what was the old and new value.

Can someone please point me some information on how to handle this? It will be a console application that I need to use these details in.

thanks for any help!

  • Suggested answer
    Bipin D365 Profile Picture
    28,981 Moderator on at
    RE: get Field Audit history like modifiedby sdk

    Hi,

    Have you turned on Auditing for your instance from system settings?

    Also, Entity Auditing should be truned on and Field auditing as well then only you will be able be to retrieve audit data of who changed what using below SDK method -

    docs.microsoft.com/.../microsoft.crm.sdk.messages.retrieveattributechangehistoryrequest

    Please mark my answer verified if this is helpful!

    Regards,

    Bipin Kumar

    Follow my Blog: xrmdynamicscrm.wordpress.com/

  • Suggested answer
    Community Member Profile Picture
    on at
    RE: get Field Audit history like modifiedby sdk

    Hi meenoo,

    You could use RetrieveAttributeChangeHistoryRequest() method to achieve this. Please refer to this doc:

    RetrieveAttributeChangeHistoryRequest Class (Microsoft.Crm.Sdk.Messages) | Microsoft Docs

    PowerApps-Samples/cds/orgsvc/C#/AuditEntityData at master · microsoft/PowerApps-Samples · GitHub

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

Jainam Kothari – Community Spotlight

We are honored to recognize Jainam Kothari as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
Daivat Vartak (v-9davar) Profile Picture

Daivat Vartak (v-9d... 181 Super User 2025 Season 1

#2
Siv Sagar Profile Picture

Siv Sagar 149 Super User 2025 Season 1

#3
Vahid Ghafarpour Profile Picture

Vahid Ghafarpour 124 Super User 2025 Season 1

Product updates

Dynamics 365 release plans