Notes
Apex:
trigger UpdateAccountRating on Account (before update) {
for (Account acc : Trigger.new) {
// Check if email, phone, and annual revenue meet the criteria
if (acc.Email != null && acc.Phone != null && acc.AnnualRevenue > 1000000) {
// Update the rating to 'Hot'
acc.Rating = 'Hot';
}
}
}
Flow Builder:
Video
Video does not exists.