completed assignment

This commit is contained in:
2025-04-02 17:50:49 +05:30
parent 35e7485001
commit 72f2541f58
32 changed files with 531 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
trigger AssignAccountOwner on Account (before insert)
{
Map<String, Id> industryUserMap = new Map<String, Id>{
'Technology' => 'UI1',
'Healthcare' => 'UI2'
};
for (Account acc : Trigger.new)
{
if (industryUserMap.containsKey(acc.Industry)) {
acc.OwnerId = industryUserMap.get(acc.Industry);
}
}
}