Skip to main content

Notifications

Announcements

No record found.

Dynamics 365 general forum
Suggested answer

get Field Audit history like modifiedby sdk

Posted on by 7,314

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
    Bipin D365 28,962 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
    Community Member Microsoft Employee 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

Anton Venter – Community Spotlight

Kudos to our October Community Star of the month!

Announcing Our 2024 Season 2 Super Users!

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

Dynamics 365 Community Newsletter - September 2024

Check out the latest community news

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,537 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,520 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans