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
navuluri25navuluri25 

how to make a field values zero on last day of month at 00:00:00 hours

i have two custom fields on user object 1. weekley count (number type)2. monthly count (number type). i want to set zero to the field weekley count on last day of week  at 00:00:00 and set zero to monthly count filed on last day of month at 00:00:00 hours

 

i have the possible solution is write a batch class and schedule the batch class at 00:00:00 hours.

 

does any other ways are there to achive this with out writing schedule class. like java script or any other ideas are appriciate.

 

Thanks,

Madhu

Ashish_SFDCAshish_SFDC
Hi Madhu,

Batch scheduler is the best option, I do not think any other way will allow us to call and execute the requirement.

Regards,
Ashish
AsitM9AsitM9
Hi Madhu,

You can do  this using time based workflow.