function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
anvesh@force.comanvesh@force.com 

is it possible to execute triggers in devoloper console?

is it possible to execute triggers in devoloper console?how? need to execute anonoumous code or can we directly executes it?

Best Answer chosen by Admin (Salesforce Developers) 
Avidev9Avidev9
You need to satisfy the trigger event. Say if the trigger is on Account update. You need to do a explicit update on account from the execute anonymous window.

Something like

update [SELECT Id FROM Account LIMIT 1];

All Answers

Imran MohammedImran Mohammed

I dont think Triggers can be executed directly in Developer console.

You might have to run the anonymous code in such a way that will let the Trigger get fired.

Avidev9Avidev9
You need to satisfy the trigger event. Say if the trigger is on Account update. You need to do a explicit update on account from the execute anonymous window.

Something like

update [SELECT Id FROM Account LIMIT 1];
This was selected as the best answer
SharathChandraSharathChandra
You can execute triggers based on trigger events for example if you want to execute trigger which is after insert of case you need to insert a case record using developer console or using salesforce ui and then you can see the trigger actions logged in the developer console