You need to sign in to do that
Don't have an account?
Link an object to an object trigger.new
Hello,
Have a issue and cannot figure out a solution. I have an opportunity trigger on insert or update that I need to get information from another object who's lookup Id is in the opportunity. I can write a SOQL to retrieve it but this trigger is also fired off on a bulk update of 8k plus records so a SOQL will not work.
example: This will trigger whenever an opportunity is updated singlely or in bulk. The Opportunity has a lookup relationship of building__c (which is a custom object), I need to retrieve two fields FieldA__c and FieldB__c from Building within the trigger. This update the field with new values.
Any sugguestions
Thanks
Hi,
The number of records a soql can return is 50000.
Use Maps and bulkify your code . Your code might be getting recursively called , try using flags to avoid this.
Thanks,
Dharani