Timeline for My requirement is to get max amount of opportunity on a custom field(Highest_Amount__c) on account object. i need to write trigger for this
Current License: CC BY-SA 4.0
7 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Feb 13, 2023 at 12:01 | vote | accept | Amit Kundu | ||
Feb 12, 2023 at 22:27 | answer | added | Derek F | timeline score: 4 | |
Feb 12, 2023 at 17:37 | comment | added | Mayur Gore | Use below link salesforce.stackexchange.com/questions/5818/… | |
Feb 12, 2023 at 12:59 | comment | added | Derek F |
General advice: Don't make your life harder than it needs to be. You should be using a rollup summary field (defined on the Account ) to accomplish this one. A trigger to do the same thing is possible, but it will take a query (queries are a very precious resource) and also require you to write unit tests.
|
|
Feb 12, 2023 at 12:38 | history | edited | Derek F |
edited tags
|
|
Feb 12, 2023 at 6:18 | history | edited | David Reed | CC BY-SA 4.0 |
added 6 characters in body
|
Feb 12, 2023 at 6:00 | history | asked | Amit Kundu | CC BY-SA 4.0 |