+ 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