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

    Is Salesforce Australia the Secret to Business Success in 2024?

    Blog in Salesforce

    Introduction Imagine this: It’s 2024, and businesses across Australia are thriving by seamlessly connecting with customers, automating tedious processes, and unlocking new revenue streams. How…

    Best Salesforce Consultants, Salesforce Consulting Services, Salesforce Public Sector
    TechForce Aug 1, 2025
    192  Views

    Apex Web Services and callouts

    Blog in Salesforce integration

    This article explains how to create the web services from Apex Code, and how to access external web services using Apex code directly from Force.com.…

    Apex Web Services, Callouts, Rest API
    Jogender Mar 29, 2016
    52,982  Views
    Salesforce - The Customer Success Platform To Grow Your Business Automation

    Salesforce: The Customer Success Platform To Grow Your Business Automation

    Blog in Salesforce Implementation, Salesforce Tools, Salesforce Tutorial

    If you’ve ever thought how great it would be to have a personal assistant, you should consider exploring Salesforce and its automation features. Imagine having…

    Approval Process, Business Automation, Customer Success, Customer Success Platform, Process Builder
    KeyNode Apr 3, 2018
    8,279  Views

    Popular Salesforce Videos

    Salesforce Platform Developer 1 Certification Training | Salesforce Training Video

    Salesforce Platform Developer 1 Certification Training | Salesforce Training Video

    Video in Salesforce Training

    This Salesforce Training Video will give an overview of Salesforce Certification Training by explaining what is Salesforce, Why we need Salesforce, Salesforce Career opportunities and…

    Salesforce Training, Salesforce Apex, Salesforce Visualforce, Salesforce Certification, Salesforce Training Videos
    Simplilearn Apr 23, 2019
    3,707  Views
    How to Add 'Add Campaign' Button to the Report Type | Salesforce Tutorial

    How to Add 'Add Campaign' Button to the Report Type | Salesforce Tutorial

    Video in Salesforce Training

    Do you want to know How to Add 'Add Campaign' Button to the Report Type in Salesforce? In this session, Distinguished Architect Iman Maghroori shows…

    Salesforce Training, Salesforce Tutorial, Salesforce Video, Salesforce Learning, Report Type
    Prafull Nov 8, 2021
    2,560  Views
    Connect ZOOM with Salesforce | Zapier | Salesforce Tutorials

    Connect ZOOM with Salesforce | Zapier | Salesforce Tutorials

    Video in Salesforce Integration, Salesforce Development

    In this video, you will learn to connect the most usable business video-conferencing application the ZOOM app with Salesforce Org using ZAPIER. I will create…

    Salesforce Training, Salesforce Development, Salesforce Developer, Salesforce Integration, salesforce
    Kapil Aug 14, 2020
    2,446  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.