In Salesforce, you may notice that the SystemModstamp and LastModifiedDate fields on a record show different values. While both fields capture date and time information about when a record was last modified, they are updated under different conditions.
Understanding this difference is important for data synchronization, delta query patterns, integration development, and SOQL query performance tuning.
LastModifiedDate is the date and time when a record was last modified by a Salesforce user through a direct action (such as editing and saving a record, running a data import, or performing a DML operation in Apex).
SystemModstamp is the date and time when a record was last modified by either a user or an automated internal Salesforce process (such as an internal trigger or background system process). In this context, "trigger" refers to Salesforce internal code that implements standard platform functionality — not Apex triggers written by developers.
As a result, SystemModstamp is always equal to or more recent than LastModifiedDate. The two fields will show different values whenever an automated Salesforce process updates the record without a direct user action.
The following scenarios cause SystemModstamp to be updated while LastModifiedDate remains unchanged:
Note: In some cases, these automated updates happen asynchronously, meaning the SystemModstamp update may occur slightly after the triggering event.
When building integrations or delta-load processes that rely on detecting record changes, use SystemModstamp rather than LastModifiedDate. SystemModstamp captures a broader set of changes and is more reliable for ensuring your integration picks up all modified records, including those updated by automated Salesforce processes.
For detailed guidance on SOQL query performance implications of using each field, see the Force.com SOQL Performance Tips: LastModifiedDate vs SystemModStamp article.
Force.com SOQL Performance Tips: LastModifiedDate vs SystemModStamp.
000387261

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.