Toggle Side Panel

  • Home
  • Articles
    • All Articles
    • Blogs
    • Videos
    • Infographics
  • Consultants
    • Salesforce Product Expertise
      • Top Salesforce ConsultantsTop Salesforce Consultants
      • Marketing Cloud ConsultantsMarketing Cloud Consultants
      • Service Cloud ConsultantsService Cloud Consultants
      • Experience Cloud ConsultantsExperience Cloud Consultants
      • Analytics Cloud ConsultantsAnalytics Cloud Consultants
    • Salesforce Industry Expertise
      • Non-Profit Cloud ConsultantsNon-Profit Cloud Consultants
      • Financial Service Cloud ConsultantsFinancial Service Cloud Consultants
      • Health Cloud ConsultantsHealth Cloud Consultants
      • Commerce Cloud ConsultantsCommerce Cloud Consultants
      • Manufacturing Cloud ConsultantsManufacturing Cloud Consultants
    • Salesforce Experts by Location
      • USATop Salesforce Consultants in USA
      • IndiaTop Salesforce Consultants in India
      • AustraliaTop Salesforce Consultants in Australia
      • United KingdomTop Salesforce Consultants in UK
      • CanadaTop Salesforce Consultants in Canada
  • Webinars
  • Marketplace
  • Advertise With Us
  • Contact Us
  • Discussions
More options
    Sign in Sign up
    • Home
    • Articles
      • All Articles
      • Blogs
      • Videos
      • Infographics
    • Consultants
      • Salesforce Product Expertise
        • Top Salesforce ConsultantsTop Salesforce Consultants
        • Marketing Cloud ConsultantsMarketing Cloud Consultants
        • Service Cloud ConsultantsService Cloud Consultants
        • Experience Cloud ConsultantsExperience Cloud Consultants
        • Analytics Cloud ConsultantsAnalytics Cloud Consultants
      • Salesforce Industry Expertise
        • Non-Profit Cloud ConsultantsNon-Profit Cloud Consultants
        • Financial Service Cloud ConsultantsFinancial Service Cloud Consultants
        • Health Cloud ConsultantsHealth Cloud Consultants
        • Commerce Cloud ConsultantsCommerce Cloud Consultants
        • Manufacturing Cloud ConsultantsManufacturing Cloud Consultants
      • Salesforce Experts by Location
        • USATop Salesforce Consultants in USA
        • IndiaTop Salesforce Consultants in India
        • AustraliaTop Salesforce Consultants in Australia
        • United KingdomTop Salesforce Consultants in UK
        • CanadaTop Salesforce Consultants in Canada
    • Webinars
    • Marketplace
    • Advertise With Us
    • Contact Us
    • Discussions
    Close search

    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, 6 months ago 2 Members · 1 Reply
      • Account Object
      • Custom Field
      • Lookup Relationship
      • Rollup Trigger
      • Salesforce 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
    • Public
    • All Members
    • My Connections
    • Only Me
    • Public
    • All Members
    • My Connections
    • Only Me

    application solution

    Popular Salesforce Blogs

    Multi-Factor Authentication

    Multi-Factor Authentication in Salesforce - The Brief Guide

    Blog in Salesforce Security

    Cybercrimes, phishing attacks, Security breaches etc. are the terms that are known by everyone nowadays. Security has become a major issue and the reason behind…

    Authentication Method, Business Hours, Cloud-based Solutions, Connectivity Issue, Credential Stuffing
    Tanya Joshi Feb 17, 2022
    2,897  Views

    How Salesforce Revenue Cloud Can Drive Revenue Growth Across Sales and Finance Through Revenue Operations (Revops)

    Blog in Salesforce Products

    In today’s business landscape, companies across the globe are redefining their sales and finance revenue operations (RevOps) to meet fluctuating customer requirements and fluid market…

    Automation, B2B, B2B Commerce, B2B Function, billing
    DemandBlue Nov 8, 2021
    2,166  Views

    Salesforce Pardot Features to Enhance Marketing ROI

    Blog in Salesforce Products

    Pardot – the smarter Marketing automation by the world’s #1 CRM platform can help you get an average of 40% increase in your marketing efficiency.…

    Engagement Studio, Lightning Application, Marketing Automation, pardot Features, ROI
    DemandBlue Oct 18, 2019
    3,895  Views

    Popular Salesforce Videos

    Work.com Workplace Command Center Demo

    Work.com Workplace Command Center Demo

    Video in Salesforce Products

    Work.com provides you with essential solutions designed to help businesses reopen the workplace as quickly as possible while helping to keep employees, customers, partners, and…

    salesforce, Salesforce Video, Customers, Businesses Reopen, Work.com
    Abhishek Aug 24, 2020
    1,880  Views
    How to: Work at Salesforce — Interview Process | Salesforce Software Engineer

    How to: Work at Salesforce — Interview Process | Salesforce Software Engineer

    Video in Salesforce Stories

    Watch this video to know about the Salesforce Interview Process and how you can start working for this dream company. We hope this video answers…

    Salesforce Video, Salesforce Learning, Salesforce Job, Salesforce Interview, Company
    Rupal Kakkar May 26, 2021
    3,113  Views
    Why are Salesforce Releases Named After Seasons?

    Why are Salesforce Releases Named After Seasons?

    Video in Salesforce Stories

    If you are wondering “Why are Salesforce releases named after Northern Hemisphere Seasons?” then get an expert answer by Megan Peterson and Salesforce Co-Founder Parker…

    Salesforce Training, Salesforce Tutorial, salesforce, salesforce knowledge, Salesforce Video
    Rupal Kakkar Feb 25, 2021
    3,167  Views
    Footer Forcetalks logo

    support@forcetalks.com

    • twitterx

    Quick Links

    Advertise with Us

    Salesforce® Articles

    Dreamforce 2023

    Top Salesforce® Bloggers 2023

    Top Salesforce Consultants

    Get Listed

    Company

    Contact Us

    About Us

    Privacy Policy

    Terms & Conditions

    InsightHub

    Salesforce Blogs

    Salesforce Videos

    Salesforce Groups

    Salesforce Jobs

    © 2026 - Forcetalks ● All Rights Reserved

    Salesforce® is a trademark of Salesforce® Inc. No claim is made to the exclusive right to use “Salesforce”. Any services offered within the Forcetalks website/app are not sponsored or endorsed by Salesforce®.

    Try AuditMyCRM - It is a Salesforce CRM Audit tool which comprehensively scans your Salesforce org and gives you the list of errors or warnings you need to take care of.
    We use cookies to enhance your browsing experience. Please see our privacy policy if you'd like more information on our use of cookies.