+ Start a Discussion
Rahul Singh 1384Rahul Singh 1384 

Batch Class to create a Custom Object Records based on Status.

Hi friends,

I have a custom object 'Retailer'[Parent], it has a Picklist Type Field 'Status' with values 'Daily, Weekly, Monthly'
I have another custom object 'Asset'[Child].
Whenever I am creating a record of 'Asset' manually by adding lookup of 'Retailer' that has 'Status' = 'Daily'.
I want to Auto Create 'Asset' Records 'Daily' in midnight with the help of Batch Class.

Any help would be greatly appreciated.