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
SFDC DummySFDC Dummy 

Auto Update Picklist Value

Hi All

How to update picklist value af all record on every 31st march of the year using trigger
R Z KhanR Z Khan
You can't use trigger here. You would need to write a schedulable class that invokes a batch since I assume you are going to have more than 50K records eventually. More info here
https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_scheduler.htm
https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_batch_interface.htm