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

    Popular Salesforce Blogs

    Salesforce Spring ’19 Release – Key Points

    Blog in Salesforce Releases

    The first Salesforce release for 2019 is now installed in your org, ready for you to take advantage of these exciting new features. Sales Cloud Features…

    Einstein Bot, Lightning Components, Lightning Flow Builder, Lightning Salesforce, Lightning Web Components
    KeyNode May 2, 2019
    5,202  Views
    marketing cloud connect

    Key Features of Salesforce Marketing Cloud Connect

    Blog in Salesforce

    Let's explore what we can do with Marketing Cloud Connect via this blog!!! Marketing Cloud Connect Marketing Cloud Connect integrates your Salesforce Marketing Cloud instance…

    Community Cloud, Contact Builder, CRM, CRM Data, Customer Engagement
    Udit Aug 4, 2020
    13,684  Views

    How to Choose CRM for Your Organization

    Blog in Others

    Organizations always prefer a single platform that is able to support all the business needs ... Organizations always prefer a single platform that is able…

    Cloud Based CRM, CRM, CRM For Business, CRM Solutions, CRM Technology
    William Apr 9, 2019
    2,859  Views

    Popular Salesforce Videos

    How To Set Up A Site On Salesforce | Salesforce Development Tutorial

    How To Set Up A Site On Salesforce | Salesforce Development Tutorial

    Video in Salesforce Development

    Learn how to set up a site on Salesforce. This tutorial will cover the following points - 1. Create Public Websites Choose a branded URL…

    Salesforce Training, Salesforce Development, salesforce, Salesforce Development Tutorial, Salesforce Video
    Algoworks Dec 28, 2020
    2,072  Views
    Work.com – Release Readiness LIVE, Summer '20 | Salesforce

    Work.com – Release Readiness LIVE, Summer '20 | Salesforce

    Video in Salesforce Stories, Salesforce Products

    Work.com is an online set of applications, resources, and content designed to help the entire workplace get back to business after the Covid-19 crisis. This…

    Workdotcom, Summer 20, COVID-19, Summer '20 Release, Salesforce Release
    Pooja Aug 14, 2020
    1,598  Views
    2020 Salesforce Admin Certification - OWD - Record Level Security

    2020 Salesforce Admin Certification - OWD - Record Level Security

    Video in Salesforce Certifications, Salesforce Admin

    Learning Objectives After completing this unit, you’ll be able to: Describe the difference between an object and field-level security Describe how to set org-wide default…

    Salesforce Training, Salesforce Certification, Salesforce Tutorials, Salesforce Admin, Salesforce Video
    Jogender Sep 28, 2020
    1,661  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.