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
David SilvaDavid Silva 

I would like to know about the custom setting and is it possible to include the commom fields in all objects in the custom setting?

Hi,
I would like to know about the custom setting and is it possible to include the commom fields(CreatedByID
CreatedDate
LastModifiedbyID
Last ModifiedDate
) in all objects in the custom setting?
Is it possible to access the custom setting from the batch apex?
 
cloudSavvyProgcloudSavvyProg
Hi David

For your question 'Is it possible to access the custom setting from the batch apex?' the answer is Yes, you can use custom settings in batch apex.

Custom settings are used to create custom data sets that can be used across organisation not per custom object or standard object.

You can create custom fields to store the information for createdbyid , created date , LastModifiedbyID, ModifiedDate in custom settings. But not per record of any object. 

The data in custom settings should be used across org. 

Here is a link to give you more info on custom setting.
https://help.salesforce.com/apex/HTViewHelpDoc?id=cs_about.htm

Hope this helps.

Regards,
CloudSavvyProg