Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested answer

Capturing Field changes in the Table

(0) ShareShare
ReportReport
Posted on by 100

Hi,

I am looking for a solution to capture any field data changes on a Table/Form. 

Eg: If a Customer table has 10 fields and if any of the 10 field data change, I need to capture the logs. 

This project of mine is time sensitive, suggestions/solutions ASAP would be greatly helpful.

Thanks

Johnson Patrick

  • Suggested answer
    YUN ZHU Profile Picture
    81,885 Super User 2025 Season 1 on at
    RE: Capturing Field changes in the Table

    Hi, this does not need to be customized, please follow the method suggested by Akash.

    More details:
    https://www.youtube.com/watch?v=x4-OASJkc7c

    https://www.youtube.com/watch?v=lT90amfkgBo

    Hope this helps as well.

    Thanks.

    ZHU

  • Suggested answer
    Akash Shukla Profile Picture
    335 on at
    RE: Capturing Field changes in the Table

    Hi Johnson,

    You can use the change log setup, by adding the fields which you want to track.

    pastedimage1681911343942v1.png

    pastedimage1681911349831v2.png

    Enabling tracking for specific fields is easy - simply select those fields and tracking will be activated. Additionally, you can view the change log data directly in the change log entries table.

    I hope this information is helpful for you.

  • Suggested answer
    Nitin Verma Profile Picture
    21,544 Moderator on at
    RE: Capturing Field changes in the Table

    If there  some specific fields then you have write your condition to check with Xrec.field <> Rec.Field values and store in your custom table.

    You can have an idea by this link - forum.mibuso.com/.../compare-xrec-to-rec

    Thanks.

  • Johnson_Patrick Profile Picture
    100 on at
    RE: Capturing Field changes in the Table

    Do you have a sample code/blog which does explains this?

  • Suggested answer
    Nitin Verma Profile Picture
    21,544 Moderator on at
    RE: Capturing Field changes in the Table

    In that case you have work on OnModify Trigger and write your logic there, what field has been modified through a RecRef or FieldRef.

    Thanks

  • Johnson_Patrick Profile Picture
    100 on at
    RE: Capturing Field changes in the Table

    Hi,

    Thanks for the reply.

    Should have been more clear. I need to capture the logs in a separate Custom table. Change log will work but since this is custom functionality, we are trying to capture the logs in a different custom table.

    -Jp

  • Johnson_Patrick Profile Picture
    100 on at
    RE: Capturing Field changes in the Table

    Hi,

    Thanks for the reply.

    Should have been more clear. I need to capture the logs in a separate Custom table.

    -Jp

  • Suggested answer
    Nitin Verma Profile Picture
    21,544 Moderator on at
    RE: Capturing Field changes in the Table

    Why do you go with Change Log setup enabled? It will help you track everything what you are looking for.

  • Suggested answer
    Mohana Yadav Profile Picture
    60,226 Super User 2025 Season 1 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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Jonas ”Jones” Melgaard – Community Spotlight

We are honored to recognize Jonas "Jones" Melgaard as our April 2025…

Kudos to the March 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... 294,336 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 233,025 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans