web
You’re offline. This is a read only version of the page.
close
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

Find Which field causes record modification

(1) ShareShare
ReportReport
Posted on by 157
Hi There,
 
For a validation, we are modifiying a status boolean field everytime job card opens. It causes Last Modified Date to be current date always. So I need to track if any other field other than the status field is causing record modification, last modified date can be changed automatically. If status field alone is updating , no need to change the last modified date. How to do that in AL ? 
 
Thanks for any guidance!
I have the same question (0)
  • Suggested answer
    Nitin Verma Profile Picture
    21,708 Moderator on at
    Hi,
    You can use Event OnBeforeMody with Rec and XRec. fileld value to compare what is going to be changed.
     
    Thanks
  • Gerardo Rentería García Profile Picture
    25,225 Most Valuable Professional on at
    Hi
    Complementing what was well mentioned by Nitin Verma, I give you some links, I hope they can give you some light.
    Best regards
    Gerardo
  • Dej Profile Picture
    157 on at
    Thank you , I thought about that. But I have more than 50 fields in job table (including custom fields). Instead of comparing all those fields, is there any way to find, only status field has been modified ?
  • Suggested answer
    YUN ZHU Profile Picture
    95,636 Super User 2025 Season 2 on at
    Hi, if you just want to monitor fields, it is recommended to use the standard feature, Field Monitoring.
     
    If it is just a certain field (Status), you can enable the Change Log function of this field, and after modification, search in the code to see if there are records. If so, it means it has been modified.
     
    Hope this helps.
    Thanks.
    ZHU
  • Dej Profile Picture
    157 on at
    Thanks!.
     
    please assist about How to enable change log function of the status field?
     
    also, I need to revert the last modified date to xrec modified date . The objective is System's Last Modified Date should not update if I change Status field.
     

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,577

#2
YUN ZHU Profile Picture

YUN ZHU 888 Super User 2025 Season 2

#3
Jainam M. Kothari Profile Picture

Jainam M. Kothari 778 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans