completed assignment
This commit is contained in:
10
force-app/main/default/triggers/Assign1.trigger
Normal file
10
force-app/main/default/triggers/Assign1.trigger
Normal file
@@ -0,0 +1,10 @@
|
||||
trigger Assign1 on Account (before insert, before update)
|
||||
{
|
||||
for (Account acc: trigger.new)
|
||||
{
|
||||
if(acc.Name.contains('Tech'))
|
||||
{
|
||||
acc.Industry = 'Technology';
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user