function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Maria WallaceMaria Wallace 

Re: "last modified date" field

Is a "last modified date" field automatically created for all new custom objects?
Maharajan CMaharajan C
Hi Maria,

"last modified date"  is a Salesforce System fields.And it will automatically will come for all the Objects.

Thanks,
Maharajan.C


 
Khan AnasKhan Anas (Salesforce Developers) 
Hi Maria,

Greetings to you!

LastModifiedDate is automatically updated when a user modifies a record. Please refer to the below links which might help you further.

https://developer.salesforce.com/docs/atlas.en-us.api.meta/api/system_fields.htm

https://help.salesforce.com/articleView?language=en_US&type=1&mode=1&id=000336532 (https://help.salesforce.com/articleView?language=en_US&type=1&mode=1&id=000336532)

https://developer.salesforce.com/blogs/engineering/2014/11/force-com-soql-performance-tips-systemmodstamp-vs-lastmodifieddate-2.html

I hope it helps you.

Kindly let me know if it helps you and close your query by marking it as solved so that it can help others in the future. It will help to keep this community clean.

Thanks and Regards,
Khan Anas
Maria WallaceMaria Wallace
That's what I though Maharajan.C but I'm being told that's not the case for Lightning.  My EA team is telling me that custom objects in Lightning no longer automatically create that field any longer.  

Thank you Khan for getting back to me but I think I may not have been clear enough.  I wasn't trying to find out if the "last modified date" field is auto updated when a record is last saved; but if the field is automatically CREATED when a new object is created.  

It seems as though this is still an open issue; however, I created a new object in LEX and it does NOT contain the standard system field "Last Modified Date" or "Last Modified By".