Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics 365 | Integration, Dataverse...
Suggested answer

get Field Audit history like modifiedby sdk

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
    Bipin D365 28,964 Super User 2024 Season 1 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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans