[SalesForce] How to Mass Update Records Without Changing the Last Modified By Field

I have a custom object that I need to do a mass update on to set a field on each to the same value.

I had written a snippet of code to execute in the Developer Console that would get all the correct records and update them. However, when testing users noticed all of them had the Last Modified By field set to my user.

It makes sense since I ran the code in the developer console. However, when pushing it to the production instance, they would like to not have the Last Modified By field set to my user so that the end users don't get confused.

Is there a way to do a mass update without having the Last Modified By be changed to my user? Or maybe reflect that the system changed it?

Best Answer

You can only do this upon inserting records. A script like what you're talking about will always modify the audit fields for Last Modified By and Last Modified Date. You'll want to vote on this idea.