You need to sign in to do that
Don't have an account?
kali charan
Populating the average amount field on account object based on the contact amount field
Hi Everyone,
I am a newbie to salesforce and and i have a requirement that I have an **Average amount** number field in account and **Amount** number field in contact and stage picklist in contact and stage picklist values are hot,cold ,warm.I have a scenario like if the stage value is hot the contact amount field should be directly populated on Average amount of account field and if the stages of contact is rather than hot the average of all the amounts of multiple contacts should be populated on the account average amount field.It should work if new contacts are inserted and even for update.
My requirement is i have to write class in the logic and that should be called from the class.
Thanks.
I am a newbie to salesforce and and i have a requirement that I have an **Average amount** number field in account and **Amount** number field in contact and stage picklist in contact and stage picklist values are hot,cold ,warm.I have a scenario like if the stage value is hot the contact amount field should be directly populated on Average amount of account field and if the stages of contact is rather than hot the average of all the amounts of multiple contacts should be populated on the account average amount field.It should work if new contacts are inserted and even for update.
My requirement is i have to write class in the logic and that should be called from the class.
Thanks.
Let me know if you get stuck in trigger.
https://developer.salesforce.com/trailhead/en/apex_triggers/apex_triggers_intro
There are few examples that you can refer to start writing a trigger.