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

    Top 10 Salesforce Development Companies In India

    Blog in Salesforce, Salesforce Consultant

    Salesforce is the top-notch cloud-based CRM company all over the world. It is positioned as an intelligent CRM company, for businesses of all sizes -…

    AR, Automation, Business Requirements, Businesses, certified professionals
    Shailesh Aug 26, 2020
    8,290  Views
    how to setup salesforce flows in 2024?

    How to Setup Salesforce-Flows in 2024?

    Blog in Salesforce

    Worried about forgetting your friend’s birthday, I have a solution for you! With the power of Salesforce flows, automating birthday reminders has never been easier.…

    Automate Repetitive Tasks Salesforce, Automated Birthday Greetings, Automated Email Configurations, Automated Greetings Setup, Custom Object Automation
    Nayan Apr 18, 2024
    1,138  Views
    Create Multiple Records Of Different Salesforce Objects

    Create Multiple Records Of Different Salesforce Objects

    Blog in Salesforce Implementation

    Here we have a demo what we achieve through the code. What you need is to follow the below steps. Also, I welcome you guys…

    Custom Objects, Multiple Records, Object Relationship, Record Data, Salesforce Contact Records
    Archit Mar 29, 2018
    10,029  Views

    Popular Salesforce Videos

    Get Started with Salesforce for Recruitment and Admissions: Recruitment and Marketing

    Get Started with Salesforce for Recruitment and Admissions: Recruitment and Marketing

    Video in Others, Marketing

    This webinar is designed for Salesforce admins and users who work in Recruitment and Admissions. It covers all you need to know about using Salesforce…

    salesforce, Salesforce Tools, Salesforce Admins, Salesforce Webinar, Salesforce Video
    Nauman Jul 28, 2020
    1,454  Views
    Salesforce Training for Beginners | Salesforce Tutorial for Certification

    Salesforce Training for Beginners | Salesforce Tutorial for Certification

    Video in Salesforce Certifications

    Once upon a time, storage was a big problem, but the innovations in technology have solved this. We can say that Cloud computing is one…

    Salesforce Reports, Process Automation, Salesforce Administration Demo, Salesforce Training For Beginers, Salesforce Tutorial For Certification
    Shiv Kumar Sharma Jan 18, 2018
    2,288  Views
    Salesforce Service Cloud Implementation

    Salesforce Service Cloud Implementation

    Video in Salesforce Implementation

    Salesforce Service Cloud offers a long list of powerful tools to help you realize the potential of your service team. With the endless opportunities for…

    Salesforce Training, Salesforce Tutorial, Salesforce Service Cloud, salesforce, Salesforce Service Cloud Implementation
    DB Mar 25, 2022
    2,359  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.