trigger AccTrigger on Account (before update) { for(Account Acc : trigger.new) { if(trigger.oldMap.get(Acc.Id).Industry == 'Electronics') { Acc.addError('Industry cannot be updated from Electronics'); } } }
No comments:
Post a Comment