Activity › Forums › Salesforce® Discussions › How to write a roll up trigger in a look up relationship? Tagged: Account Object, Custom Field, Lookup Relationship, Rollup Trigger, Salesforce Triggers Salesforce® Discussions How to write a roll up trigger in a look up relationship? Posted by Anurag algoworks on July 19, 2018 at 3:24 PM How to write a roll up trigger in a look up relationship? madhulika shah replied 7 years, 9 months ago 2 Members · 1 Reply Account ObjectCustom FieldLookup RelationshipRollup TriggerSalesforce Triggers 1 Reply madhulika shah Member July 25, 2018 at 12:55 PM Hi Anurag, Display a number of contacts in each account. Create a custom field “number_of_contacts” in Account object and write a trigger on contact object. For code please refer to th link- https://developer.salesforce.com/forums/?id=906F0000000DBfZIAW Log In to reply. Public All Members My Connections Only Me PublicAll MembersMy ConnectionsOnly Me Public All Members My Connections Only Me