function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
priya bhawna shettypriya bhawna shetty 

trigger with account and contact count related

hi guys

here is a small scenario with trigger.

In account object theres a "contact count"  custom field, so question is whenver i updated any contact related to that accont ..the contact count custom field must show the count after saving contact information... whats the logic here...

Prashant TiwariPrashant Tiwari
Hi,

Write a trigger(after update) on contact, get its related account and update the field "contact count".

Thanks,

Prashant Tiwari