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

    Salesforce Spring'21 Release Update For Nonprofit Cloud

    Blog in Salesforce Releases

    Organizations have adopted technology as a crucial strategy in handling the new normal as the environment continues to shift. Moving to digital and spending more…

    Attendance Reports, Business Units, Case Management, Chat Support, Community Programs
    Apphienz Mar 24, 2021
    1,831  Views
    Multi Factor Authentication

    MFA (Multi-Factor Authentication) in Salesforce

    Blog in Salesforce Security

    Introduction MFA is a special security feature provided by Salesforce that provides an extra layer of protection against suspicious or unauthorised logins. After enabling the…

    API Login Users, AppExchange App, Authenticator App, connected app, Custom Domain
    Arun Nov 1, 2021
    6,549  Views

    Mastering the Magic: Unleashing the Power of Unique Salesforce Formulas

    Blog in Salesforce Admin

    What are Salesforce Formulas? Salesforce formulas are expressions or calculations that can be used to derive values, perform calculations, and manipulate data within Salesforce. They…

    ASCII, Automation, Begins, BlankValue, BR
    SF Jul 20, 2023
    1,009  Views

    Popular Salesforce Videos

    How you can Increase your Salesforce Efficiency and Productivity

    How you can Increase your Salesforce Efficiency and Productivity

    Video in Salesforce Training

    In this video, Brad discusses how to increase your workplace efficiency and productivity using various Google Chrome extensions and techniques. As always, we have linked…

    Salesforce Developer, salesforce, SFDC, Salesforce.com, Google Chrome
    Bradley Jun 3, 2020
    2,162  Views
    Salesforce Admin Certification 2020 Questions Explained with References - Part I

    Salesforce Admin Certification 2020 Questions Explained with References - Part I

    Video in Salesforce Certifications

    How to prepare and pass Salesforce Admin Certification with Practice Exam Questions 2020 practice questions and answers for the Salesforce Administration Salesforce Certified Admin Exam…

    Salesforce Training, Salesforce Tutorial, Salesforce Administration, Salesforce Certification, Salesforce Admin
    Prafull Feb 26, 2021
    1,962  Views
    Salesforce Demo - Sales Dashboard Example

    Salesforce Demo - Sales Dashboard Example

    Video in Sales

    Our team created a comprehensive sales dashboard for one of our clients. We're posting this video about it to generate feedback and additional ideas for…

    Salesforce Training, Salesforce Demo, Salesforce Video, sales, sales team
    Onyx Oct 1, 2020
    2,289  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

    © 2025 - 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.