Salesforce Fact #975 | Field history tracking issue with system context

There's a loophole with the field history tracking when the automation is executed in system context.

If the user doesn't have the object access/field access and the automation executes in system context without sharing mode, then the record gets created and the audit fields are stamped correctly but the field history related list stays blank.

Here's the relevant Idea link: https://ideas.salesforce.com/s/idea/a0BHp000019OmswMAC/enable-field-history-for-system-mode-dmls-regardless-of-object-permissions

Reference: https://trailhead.salesforce.com/trailblazer-community/feed/0D5KX00000mjpO60AI

Comments

Popular posts from this blog

Salesforce Fact #913 | Access selected record field values in screen flow lookup w/o Get Records