I'm trying to set Rating field value in Account object to 'Warm' whenever the Industry filed value on Account is Finance or Chemicals or HealthCare.
Possible Solutions:
1.Using Workflows
2.Using Triggers
In this post I'm trying to do this with the help of trigger only.Below is code snippet to implement this functionality with the help of trigger.
Source Code:
Possible Solutions:
1.Using Workflows
2.Using Triggers
In this post I'm trying to do this with the help of trigger only.Below is code snippet to implement this functionality with the help of trigger.
Source Code:
trigger updateRatingTrigger on Account (before insert,before update)
{
if(Trigger.isBefore && (Trigger.isinsert || Trigger.isUpdate))
{
Set<String> setIndusry = new Set<String>{'Finance','Chemicals','HealthCare'};
for(Account acc: Trigger.new)
{
if(setIndusry.contains(acc.Industry) && acc.Rating!='Warm')
acc.Rating= 'Warm';
}
}
}
Enjoy....!
4C5315DD67
ReplyDeletekiralık hacker
hacker arıyorum
kiralık hacker
hacker arıyorum
belek
2B5E1DE13B
ReplyDeleteCanlı Show Whatsapp
Whatsapp Şov
Whatsapp Görüntülü Show Numaraları
E6C99C85
ReplyDeleteagoda güvenilir mi
agoda güvenilir mi
agoda güvenilir mi
E378147F
ReplyDeleteKandıra
Karasu
Menderes
Elvankent
Yüksekova
Kalkan
Meram
Nizip
Yalıkavak
45B6FCBB
ReplyDeleteBahçelievler
Silopi
Artuklu
Akçay
Avanos
Kayapınar
Polatlı
Tire
Saray
2393A065
ReplyDeleteAltınova
Beydağ
Araban
Ayvalık
Çivril
İlkadım
Kandıra
Fındıklı
Akyaka