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, 4 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

    Communicate across the DOM | All You Need to Know

    Blog in Others

    In LWC, there are various ways to communicate across the DOM. Events are one of the most popular techniques. Events in LWC, which can be…

    Automatically updated, Built-in events, Button clicks, Capture, Child components
    Kapil May 30, 2023
    1,515  Views

    Top 10 Pardot Features - Salesforce Winter '22 Release

    Blog in Salesforce Releases

    Salesforce has released the Winter ’22 release notes recently. As expected the new release is jam-packed with amazing features. Our team has curated the top…

    B2B Marketing Analytics, Beta Service, Build a Landing Page, Business Unit, Consumers
    Apphienz Sep 9, 2021
    2,736  Views

    Salesforce Field Service Lightning Mobile Extension Toolkit (Beta)

    Blog in Salesforce

    For any field service organization to be successful, it is important to give ample attention to the management. Managing the field forces and service technicians…

    Aura Components, Desktop Testing, Developers, End-users, Field Forces
    360 Degree Jan 20, 2022
    4,674  Views

    Popular Salesforce Videos

    Allies Unite at Dreamforce 2019! Datafam march to trailblazers, Drumrolls!

    Allies Unite at Dreamforce 2019! Datafam march to trailblazers, Drumrolls!

    Video in Others

    mid laughter and boisterous conversations at Dreamforest, Datafam - the Tableau workforce - turned all heads with a remarkable entry marked with riotous sounds and…

    Salesforce Events, Dreamforce 2019, DF 19, Dreamforce Video, Tableau
    Algoworks Nov 29, 2019
    4,588  Views
    Salesforce Billing - Digital Wallets and Alternative Payment Methods

    Salesforce Billing - Digital Wallets and Alternative Payment Methods

    Video in Others, Salesforce Stories

    THE GOAL:  In this video, you will learn how to use Alternative Payment Methods and Digital Wallets with Salesforce Billing. BEFORE YOU BEGIN, KNOW THE…

    salesforce, Salesforce Video, Salesforce Billing, Digital Wallets, Alternative Payment Methods
    Jogender Jul 1, 2020
    3,529  Views
    Migrating from Salesforce NPSP to Nonprofit Cloud

    Migrating from Salesforce NPSP to Nonprofit Cloud

    Video in Salesforce Products

    The Salesforce Nonprofit Success Pack (NPSP) is a longstanding managed package with a user-friendly constituent management application and fundraising tool. However, Salesforce is pivoting nonprofit…

    salesforce, CRM, NPSP, Nonprofit Success Pack, Digital Transformation
    DB Nov 25, 2025
    17  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

    © 2025 - 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.