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
Aditi Mohanty 5Aditi Mohanty 5 

how to create a new checkbox field on account, in trigger and set this field as true when new account gets created.

Best Answer chosen by Aditi Mohanty 5
CharuDuttCharuDutt
Hii  Aditi Mohanty
Try The Following Code
trigger checkboxchecked on Account (before insert) {
	if(trigger.isInsert){
        if(trigger.isBefore){
               system.debug('Before Insert');
            for(Account Acc : trigger.new){
                Acc.CheckBoxFIeld = true;
            }
               
   }
    }
}
Please Mark it As Best if it Helps