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

    All You Need to Know About Marketing & Commerce Cloud in Salesforce

    Blog in Others

    Marketing & Commerce Cloud in Salesforce Welcome back everyone; since you know about the sales and service cloud you guys must be curious about the…

    Artificial Intelligence, Automation, Behavior, Campaigns, CLOUD
    Mohit Kumar May 10, 2023
    1,605  Views
    appexchange

    Salesforce AppExchange - Everything you Need to Know

    Blog in AppExchange

    Salesforce’s AppExchange is really fruitful and demanding app platform in marketplace. This cloud computing souk is hosted by Salesforce.com, here you can find thousands of…

    App Platform, App Solutions, AppExchange Certified Connector, AppExchange Directory, AppExchange Platform
    Algoworks Feb 15, 2020
    2,451  Views
    Document Workflow Automation: To Implement or Not?

    Is It a Good Idea to Implement Document Workflow Automation in Salesforce?

    Blog in Salesforce Implementation

    What is a Document Workflow? A document workflow is the process of routing, reviewing, approving, and managing documents within an organization. Document workflow software can…

    automatic-document-generation, Customer Data, Customer Interactions, Customer Relations, Customer Relationships
    Rajeev Jan 16, 2023
    2,002  Views

    Popular Salesforce Videos

    Methods in Salesforce - All You Need to Know

    Methods in Salesforce - All You Need to Know

    Video in Salesforce Apex

    Learn All About Methods in Salesforce. Watch this video and do let us know if you have any doubts or concerns. What is a Method…

    Salesforce Training, Salesforce Tutorial, Salesforce Apex, salesforce, Apex
    SFDC Sep 16, 2022
    3,124  Views
    Live Demo of Salesforce Industries

    Live Demo of Salesforce Industries

    Video in Salesforce Stories

    Watch the live demo to have a better understanding of Vlocity i.e Salesforce Industries. Let's have a glance at this extract from our latest webinar!…

    Salesforce Training, Salesforce Tutorial, salesforce, Salesforce VIdeos, Salesforce Learning
    Cyntexa Oct 6, 2022
    1,517  Views
    What is Validation Rule in Salesforce? Explain in details

    What is Validation Rule in Salesforce? Explain in details

    Video in Salesforce Admin

    Validation Rule will check the data entered by user during insert or update the operation and as per that it will actually take the action.…

    Salesforce Training, Salesforce Online Training, salesforce, Salesforce Video, Salesforce Learning
    CRS Apr 8, 2022
    1,438  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.