You need to sign in to do that
Don't have an account?
VN
Doubt in Trigger
Hi,
We have a requirement where we need to populate a field in Accounts page. The field will have the count of total number of events completed for this account. The trigger should get executed whenever an event is created or updated.
My doubt is: Is it possible to update a field in Accounts page by executing a trigger on events. If Yes, then how?
Please share your ideas on how to achieve this.
Thanks in advance
Priya Nair
Harmpie
Yes, it is possible to update a field on the Account object (almost any object for that matter) with a trigger on Event.
How? Add the trigger to the Event object and have the trigger code manipulate the related Account.
For example (this is some old, unused test-code but it will give you an idea)
Code:
VN
Thanks a lot for clarifying my doubt. Will try doing this.