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 calculate the sum of the contact records expiring soon on an account object in Salesforce?

    Tagged: Account Object, Contact Record, Email, Email Permission, Salesforce Apex Code

    • Salesforce® Discussions

      How to calculate the sum of the contact records expiring soon on an account object in Salesforce?

      Posted by sindhu on September 25, 2018 at 2:18 PM

      Want to calculate the sum of the contact records expiring soon on an account object

      Hi I am new toapex code and I am trying to caliculate the sum of the contact records where the email opt-in is about to expire. (email permission =  Date + 60 OR email permission = NULL). on Account object I want to display the count of these records. can somebody please help me with the code.

      sindhu replied 8 years, 1 month ago 1 Member · 0 Replies
      • Account Object
      • Contact Record
      • Email
      • Email Permission
      • Salesforce Apex Code
    • 0 Replies

    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 Wave

    Salesforce Wave: The New Salesforce Analytics Platform

    Blog in Analytics, Salesforce

    For those who missed the Dreamforce keynotes or the highlights of the marketing and promotional campaigns by Salesforce teams, here is a quick one-line summary…

    CRM Product, Dashboard Customizations, Dreamforce, Mobile First Platform, NoSQL
    Algoworks Oct 27, 2017
    5,899  Views

    What are Advantages of Hiring a Salesforce Technical Consultant?

    Blog in Others

    If you’re using Salesforce, you need to manage customer relationships better, streamline your operations, and grow your business. But without the right knowledge, it can…

    vishal Aug 1, 2025
    362  Views
    Rollup Helper In Salesforce

    How To Use Rollup Helper In Salesforce? The Complete Guide

    Blog in Salesforce Admin

    Rollup Helper As we can understand the name Rollup means it rollups the Salesforce data (Count, Max, Min, Average) from a child object to a…

    App Launcher, AppExchange, Application, Child Field, Child Object
    Deepanshi Agarwal Jun 15, 2022
    5,425  Views

    Popular Salesforce Videos

    Soar: A Salesforce Philanthropy Film

    Soar: A Salesforce Philanthropy Film

    Video in Salesforce Stories

    When one of us is lifted up, all of us are lifted up. ? That's why we're supporting #GoGiveOne, a campaign to advance global vaccine…

    salesforce, Salesforce Philanthropy, Salesforce Video, Salesforce Learning, COVID-19
    Rupal Kakkar Sep 28, 2021
    2,657  Views
    How Can Salesforce Marketing Cloud Help You Grow Your Business Exponentially?

    How Can Salesforce Marketing Cloud Help You Grow Your Business Exponentially?

    Video in Marketing, Salesforce Cloud Platform

    Salesforce Marketing Cloud can help you take your marketing to the next level by providing an all-in-one platform that helps you strategize across multiple channels.…

    Salesforce Training, Salesforce Tutorial, salesforce, Salesforce Marketing Cloud, Salesforce Learning
    Mayra Sep 13, 2022
    2,730  Views
    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,167  Views

    Popular Salesforce Infographics

    Why Integrate Your Pardot Account with Salesforce?

    Infographic in Salesforce integration

    Salesforce Sales Cloud is primarily a sales tool while Pardot is a marketing automation platform. Both are designed to increase sales and maximize efficiency for…

    Salesforce Sales Cloud, Salesforce Pardot, Salesforce Integration, Salesforce Records Management, Marketing Automation
    Rupal Kakkar Jul 30, 2018
    3,213  Views

    Sales trends and performance: ANZ versus global

    Infographic in Others, Sales

    Technology is pushing customer expectations to all-time highs and sales organisations into uncharted territory. Organisations worldwide are coping differently as sales trends change operations. Sales…

    Sales Engagement, Sales trends, AnZ, Sales market, Opportunity Management
    Prafull Aug 6, 2018
    2,758  Views

    How to Use Psychology to Target Your Buyer?

    Infographic in Sales

    Ever wanted to get into the minds of your customers and figure out how they think? Ever wanted to know the best methods to convince…

    Salesforce Sales Cloud, Salesforce Analytics, Salesforce Marketing Cloud, Customer Success, Business Success
    Shiv Kumar Sharma Apr 10, 2018
    3,427  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.