How to show error message on the detail page of Salesforce sobject through before delete trigger?
I want to show error message on Account detail page, given below trigger shows error on the different page :-
trigger testDelete on Account (before delete)
List <Account> acc = [SELECT Id, (SELECT Id FROM Opportunities ) FROM Account WHERE Id IN : Trigger.old];
for(Account a : acc)
Log In to reply.
Popular Salesforce Blogs
Hello guys, Today we see that how we can add global action in Salesforce1. But first, let’s see brief definition of that what is global…