Don't have an account?
Search for an answer or ask a question of the zone or Customer Support.
You need to sign in to do that
Sign in to start searching questions
Signup for a Developer Edition
Sign in to start a discussion
How to execute a trigger only one time instead of executing for all records.
Please provide more details on your exact requirement.
You can use static boolean variable in a class and set it at the begining of the trigger execution.
I phased one question how can you control your trigger to execute only one time instead of for all records. that was the question.
which record? 1st record?
then you can take that record as trigger.new[0].
Please provide more details on your exact requirement.
You can use static boolean variable in a class and set it at the begining of the trigger execution.
I phased one question how can you control your trigger to execute only one time instead of for all records. that was the question.
which record? 1st record?
then you can take that record as trigger.new[0].