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

    Demystifying Salesforce Blockchain

    Blog in Salesforce Releases

    Salesforce is always a company that is looking ahead to the next big in technology, whether it is mobile, social, IoT or Artificial Intelligence. The…

    Artificial Intelligence in Salesforce, Blockchain platform, salesforce Blockchain, Salesforce Features, Salesforce Lightning
    LevelShift (formerly DemandBlue) Jul 2, 2019
    3,068  Views
    salesforce ai

    Salesforce Offers Artificial Intelligence To Ramp Up Small Businesses!

    Blog in AI and ML, Salesforce

    AI or Artificial Intelligence is here to stay and stay for quite a longer period than we might have apprehended. It continues to empower the…

    Artificial Intelligence, Customer Service Departments, Data Scientists, Data Trend, New Technologies
    Algoworks Apr 14, 2018
    3,661  Views
    Managed and Unmanaged packages in Salesforce in 2023 | All You Need to Know

    Managed and Unmanaged packages in Salesforce in 2023 | All You Need to Know

    Blog in Salesforce

    What are the various types of packages in Salesforce? Let's understand! Unmanaged Package Think of it as a beautifully wrapped gift box that you can…

    API, App Launcher, AppExchange Marketplace, Build Package Versions, Classes and Components
    NAVDITA DAHIYA Mar 27, 2023
    2,056  Views

    Popular Salesforce Videos

    Summer Internship | Career with Salesforce

    Summer Internship | Career with Salesforce

    Video in Salesforce Admin

    This Summer, dive into the ocean of Salesforce with S2 Labs Apply for the much-awaited S2 Labs Summer Internship Program and start accelerating your career…

    Salesforce Training, Salesforce Tutorial, salesforce, Salesforce Video, Salesforce Learning
    S2 Jun 20, 2022
    1,476  Views
    Salesforce Development Master Training | Salesforce Development Course

    Salesforce Development Master Training | Salesforce Development Course

    Video in Salesforce Training, Salesforce Development

    Shrey Finally launched the most awaited Salesforce Development Master Training. Features of the course are: Learn Salesforce Development from Scratch with more than 100 on-demand…

    Salesforce Training, Salesforce Tutorial, Salesforce Development, Salesforce Certification, salesforce
    S2 Feb 8, 2022
    2,890  Views
    Are they secure enough ? Web to Lead Forms | Validations | SPAM | CAPTCHA | Salesforce Tutorials

    Are they secure enough ? Web to Lead Forms | Validations | SPAM | CAPTCHA | Salesforce Tutorials

    Video in Salesforce Admin

    Are you using web to lead forms ? Do you think it's secure enough ? In this video you will get all your answers. And…

    salesforce, Salesforce Tutorials, Salesforce Admins, Salesforce Video, Salesforce Learning
    Kapil May 11, 2020
    2,106  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.