Комментарии:
while inserting record getting this error OpportunityTrigger: execution of AfterInsert caused by: System.NullPointerException: Attempt to de-reference a null object Class.OpportunityTriggerHandler.sumofoppamountmethod: line 39, column 1 Trigger.OpportunityTrigger: line 5, column 1
Ответитьwhen i tried it hitting this error OpportunityTrigger: execution of AfterInsert caused by: System.NullPointerException: Attempt to de-reference a null object
ОтветитьHi Badal , In the past few weeks I have got immense confidence on Apex Triggers , Thank you for all your efforts.....
One thing I wanted to add is that we can have a check like only if Opportunity Amount field is updated then the whole logic should be applied else I guess there is no need to update the related accounts ?
Please correct me if I am wrong
Thank You
Is we change parent of two opportunities, the total amount field on the account updates only one of the opportunity amounts. Why is it so ?
ОтветитьHii why we used totalAm field it doe not exist in opportunity obj
ОтветитьHi! How do I filter it to capture only Closed Won Opportunities? Thank you.
ОтветитьHi
I have scenario where total amount is not updating in the account field change on opportunity.
If account has only 1 opportunity and if parent account gets change, then total amount is not updating to 0.
Note: if i delete that opportunity, then total amount is updating to 0.
Brother if we remove line 58, then I guess line 68 to 77 will not be required?, please let me know
ОтветитьBro you not doing as per best practice where is the trigger helper method
Ответитьwhy you are not using handler class. is there any specific reason
ОтветитьHii Badal, you can use that same technique to count number of contact instead of using inner query.
ОтветитьThank you so much bro ...
Ответитьundelete is not working please give the code link in the description
ОтветитьThank you brother.
Ответить