You need to sign in to do that
Don't have an account?
Aidel Bruck
How to run a soql query once for many triggers
I have many record types for opportunities. I need to run a soql query to get all the record types.
My opportunity triggers are coded seperately and I don't want to change the whole setup now.
I am getting the govern limit error and I think its becuase the soql query for the record types is coded seperately in each trigger.
Is there any way to run the query one time and somehow make it public for all the triggers?
My opportunity triggers are coded seperately and I don't want to change the whole setup now.
I am getting the govern limit error and I think its becuase the soql query for the record types is coded seperately in each trigger.
Is there any way to run the query one time and somehow make it public for all the triggers?
I need to run a query to get the ids for the different record types.
The data in the custom settings is hard coded.