You need to sign in to do that
Don't have an account?
Freddy Davaris
Update a specific account without querying it.
Hi All,
I was wondering if there is any way of updating an account field in APEX if i have the account ID in the Triggered Object. Right now i am running into the issue that I can not do the following (Trigger is on the Opportunity).
List <Account> AccountsInHierarchy = [SELECT Field_A, Field_B, Field_C FROM Account WHERE Ultimate_Parent_ID__c = Trigger.new.Account.Ultimate_Parent_Id__c ];
Whenever I do this I get the following error:
System.LimitException: Too many query rows: 50001
I have already tried limiting the numbers returned by my SOQL Query but the error persisted. Any help would be much appreciated.
Best,
FD
try something like this :
Thanks, let us know if it is work
All Answers
try something like this :
Thanks, let us know if it is work
Hey guys, thanks for the help! That's a good fix but it does not handle mass updates Here is what I was looking for:
https://salesforce.stackexchange.com/questions/216249/soql-query-limit-to-50000-records
Appreciate your time responding.
FD