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,10 @@
trigger PreventHighValue on Opportunity (before insert)
{
for (Opportunity opp : Trigger.Old)
{
if (opp.Amount != null && opp.Amount > 100000)
{
Trigger.OldMap.get(opp.Id).addError('Cannot delete high-value opportunities!');
}
}
}