You need to sign in to do that
Don't have an account?

Trigger to update a field in account
There is a custom field total in account. I want to update field value with the sum of previous record total value and new record total record value if they have same industry and record type
Thank you for giving the solution but I need whenever I insert a record in account with same industry and recordtype like previous account record the total field should be sum of old record total value and new record's fee field value
To avoid query inside for loop we may use maps instead.
If this is the exact question you had and need to use maps.Let us know we will let you know a better solution.
Hope this would solve your question!