Salesforce Fact #130 | Lastmodifieddate unchanged in test class

We can use Test.setCreatedDate() method in the test class to set the createddate of the record as per our need. But it does not change the lastmodifieddate.

Attached are the screenshots.



Comments

Popular posts from this blog

Salesforce Fact #192 | Call batch apex from flow

Salesforce Fact #457 | Get current user role name in flow