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
adi salesforceadi salesforce 

Trigger to update description field with default value if the description field is empty in account.

Sachin P Sam 1Sachin P Sam 1

@ adi salesforce
See the following trigger code
trigger Desc_default_Value on Account (before insert) {
for(Account acc:Trigger.New){
if(acc.Description==null)
acc.Description='Default Value';
}
}
Regards 
Sachin P Sam