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

    Salesforce Experience Cloud Implementation Guide

    Blog in Salesforce Implementation

    Table of Contents   Introduction Salesforce Experience Cloud Implementation Steps Planning and Preparation Setup and Configuration Content Management User Management and Security Integration and Automation…

    Content Management Salesforce, Digital Experience Cloud, Experience Cloud Automation, Experience Cloud Configuration, Experience Cloud Customization
    Kizzy Consulting Sep 11, 2024
    811  Views
    Salesforce Apex Trigger – Child to Parent Trigger using Map

    Salesforce Apex Trigger - Child to Parent Trigger using Map

    Blog in Others, Salesforce Apex

    Hello guys, In this blog, I am sharing the code of trigger it will update the account field on updation or insertion of Contact field.…

    Child Trigger, Maps in Salesforce, Parent Child Relationship, Parent Trigger, Salesforce Account
    Avnish Yadav Sep 24, 2018
    24,601  Views
    salesforce myth

    Busting 5 Myths Around Salesforce

    Blog in Salesforce

    In today’s fast-paced world, there are a lot of businesses and start-ups who come up with a ground-breaking idea but unfortunately fail to make it…

    AppExchange, AppExchange Apps, Apps, Automotive, B2B Marketing Automation
    Algoworks Jul 7, 2022
    2,462  Views

    Popular Salesforce Videos

    Level Up Your Processes With Google API and Salesforce Integration

    Level Up Your Processes With Google API and Salesforce Integration

    Video in Salesforce Integration

    Complex processes often span multiple systems. In this session, we'll cover how to integrate Google APIs into your Salesforce org with an API library in…

    Salesforce Apex, Salesforce Sales Cloud, Salesforce Integration, Apex APIs, Sales Cloud Consultant
    Nauman Mar 7, 2018
    2,063  Views
    How to Set Up Salesforce Knowledge?

    How to Set Up Salesforce Knowledge?

    Video in Others, Salesforce Training

    Watch this video to learn how to set up Salesforce Knowledge so you can help your team more easily find answers to common customer requests.…

    salesforce, salesforce knowledge, CRM, Salesforce Essentials, Salesforce VIdeos
    Nauman Mar 23, 2020
    2,971  Views
    What is Lead Assignment rule in Salesforce and How to create it?

    What is Lead Assignment rule in Salesforce and How to create it?

    Video in Salesforce Implementation, Salesforce Training

    This video explains Lead Assignment rules in depth in an interesting way and fun way. This video is divided into 4 parts: - What is…

    salesforce training videos for beginners, Salesforce Online Training, Salesforce Training Videos, Free Salesforce Training, Salesforce Records
    Prafull Feb 13, 2018
    2,349  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.