Toggle Side Panel

  • Blogs
  • 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
  • Contact Us
  • Discussions
More options
    Sign in Sign up
    • Blogs
    • 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
    • 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 8 years, 1 month 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

    Popular Salesforce Blogs

    Top 5 Salesforce Summer ‘20 Release Features That Skyrocket Productivity

    Blog in Salesforce Releases

    Salesforce has just published its’ release notes for Summer ’20! It’s packed with a plethora of enhancements and newly introduced features for Salesforce clouds and…

    App Builder, Configure, CSV Files, Custom Objects, Database
    LevelShift (formerly DemandBlue) Oct 8, 2020
    2,784  Views

    From Lead Generation to Closing: Solving Sales Cycle Inefficiencies with Salesforce

    Blog in Salesforce

    The sales cycle is crucial to the success of any business, as it directly impacts revenue and customer acquisition. In fact, according to Salesforce’s State…

    William Dec 29, 2025
    1,233  Views
    Reports and Dashboards in Salesforce The Ultimate Guide

    Reports and Dashboards in Salesforce | The Ultimate Guide

    Blog in Salesforce Admin

    Here we will study One of the key features of Salesforce that is the ability to generate reports and dashboards that provide valuable insights into…

    Benefits, Better Decision Making, Business Performance, Charts, customizable
    bhawana Apr 25, 2023
    2,111  Views

    Popular Salesforce Videos

    Good Time To Buy Salesforce Stock? CRM Stock Analysis

    Good Time To Buy Salesforce Stock? CRM Stock Analysis

    Video in Others, Salesforce Stories

    CRM stock price is currently all over after reporting its SALESFORCE earnings report. I am considering if I should buy CRM Stock. This is a…

    salesforce knowledge, Salesforce Learning, Salesforce Stock, Salesforce Earnings Report, CRM Stock Analysis
    Neha Yadav Sep 2, 2020
    2,141  Views
    Leads & Opportunities for Lightning Experience - Create and Convert Leads

    Leads & Opportunities for Lightning Experience - Create and Convert Leads

    Video in Lightning

    Learning Objectives After completing this unit, you’ll be able to: Update a record’s stage or status using Path. Update records in the Kanban view. Use…

    Salesforce Training, Salesforce Lightning, salesforce, Trailhead, Salesforce Trailhead
    Vivek Apr 20, 2020
    2,554  Views
    Tracking Member Engagement with Scoring and Dashboards

    Tracking Member Engagement with Scoring and Dashboards

    Video in Analytics

    More than half of organizations with a member engagement plan reported that it helped them increase: Membership renewals by 51%. Attendance at events and webinars…

    Salesforce Tutorial, salesforce, Salesforce Video, Digital Engagement, dashboards
    Aplusify Jun 24, 2024
    520  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®.

    We use cookies to enhance your browsing experience. Please see our privacy policy if you'd like more information on our use of cookies.