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
Behzad Bahadori 18Behzad Bahadori 18 

Adding a new custome field into contact and need all the old record with the new defualt value

Hi, I am adding a new drop down field to Contacts object. The drop down is Defaulted to Yes. I need to have all the old records in contact to be updated to Yes value as well. do i write a trigger? if so how do I write it?
pratap singh 10pratap singh 10
You need to write a batch class for this. Make sure triggere do not get fired on update.