When you attempt to insert records with the Last Modified Date and Last Modified By fields using a user with the Create Audit Fields permission enabled, the inserted values may appear not to have been set. This occurs when certain platform behaviors override the provided audit field values after the record is created.
When records are inserted using the Create Audit Fields permission to preserve historical Last Modified values, certain platform behaviors can override those values after insert. Two common causes are active automation (triggers, flows, or process builders) that update the record post-insert, and the Shared Activities feature that triggers an internal update during task creation. Review the sections below to identify and address the relevant cause.
Last Modified fields may not appear to be set with inserted values if there are triggers or automation fired after the creation of records in that object. If that automation performs an update on the record, new Last Modified values will be used rather than the provided values. If the audit fields must be populated using the provided values, disable any automation that occurs after record creation.
When the Shared Activities feature Allow Users to Relate Multiple Contacts to Tasks and Events and the Create Audit Fields permission are both enabled, the Last Modified Date and Last Modified By fields will not reflect the inserted value. This is true if the task is associated to a contact or lead (WhoID), or other records such as Account, Opportunity, or Campaign (WhatID) during task insert.
During creation of the associated records, the task is exposed to an internal update, which results in the Last Modified Date and Last Modified By fields being updated with the current date and time as well as the user performing the task insert.
Note: The Allow Users to Relate Multiple Contacts to Tasks and Events setting is automatically enabled in Professional Edition.
Enable Shared Activities
Enable the 'Create Audit Fields' permission
Disable a Trigger in a production environment
000385140

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.