VersioningCompareRecordVersions - Compare records in D365


Hello Everyone,

I am not sure if everybody is aware that AX has in-built logic to compare records. Just think we often gets scenario where we compare the values of fields which has been changed and react in special way for those changed field.
And, I have seen most of us iterate all fields and compare their values which has been changed by taking two table buffers original table and updated table , for instance. Is this not something that is already available in D365 ? YES indeed it exists in "VersioningCompareRecordVersions" class.

The following example take two different records of same table , compare them and show which fields are differ:












There are lot of things we can do with VersioningCompareRecordVersion class,

Comments