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

    Coding and Scripting: Key Differences and Modern Uses

    Blog in Coding and Scripting

    In the fast-paced world of the present times, scripting and coding are the foundations on which this computer era functions. From day-to-day applications to websites…

    Code Coverage, Code Line, Dynamic Script, Programming Language, Website
    adam Nov 11, 2025
    321  Views

    Future-Proof Your Business: Customized Salesforce Solutions for a Winning CRM Strategy

    Blog in Salesforce

    Organizations must change and adapt in order to stay ahead of the competition in today's quickly evolving digital landscape.  A robust Customer Relationship Management (CRM)…

    Salesforce Consulting Services, Salesforce Development Services, Salesforce Solutions
    TechForce Aug 1, 2025
    357  Views

    Driving Your Innovation Process With an Ideas Management Software | Salesforce

    Blog in Salesforce Products

    Have you ever thought about how organizations innovate? Well, every innovation was once just an idea and ideas come your way when least expected. The…

    Beta Version, Business, Businesses Value, Customer Community, Customer Satisfaction
    Sukhwinder Singh Aug 26, 2022
    2,164  Views

    Popular Salesforce Videos

    Non-technical But Want to Build Career in Salesforce?

    Non-technical But Want to Build Career in Salesforce?

    Video in Salesforce Stories

    In this video Shrey gave the answer to the following questions: 1. What is the next step after doing Certification in Salesforce Administrator? 2. How…

    Salesforce Training, Salesforce Tutorial, Salesforce Certification, Salesforce Administrator, salesforce knowledge
    Jogender Oct 12, 2021
    1,759  Views
    Business Days in Salesforce CRM Analytics (Tableau CRM)

    Business Days in Salesforce CRM Analytics (Tableau CRM)

    Video in Analytics

    It's common for businesses to want to take business days into account when showing data on a dashboard in CRM Analytics (formerly Tableau CRM) to…

    Salesforce Training, Salesforce Sales Cloud, salesforce, Apex, Business Logic
    DB Aug 12, 2022
    1,948  Views
    Salesforce Platform Quick Tip: How to Access Popular Items in a Single Click

    Salesforce Platform Quick Tip: How to Access Popular Items in a Single Click

    Video in Salesforce Stories

    Want to get to the things you use most with fewer clicks? Trailblazer and Senior Salesforce Developer, Ellie Matthewman shows us how to use favourites…

    Salesforce Tutorial, Salesforce Developer, salesforce, salesforce platform, Salesforce Video
    Jogender Oct 20, 2021
    2,154  Views

    Popular Salesforce Infographics

    Salesforce Buzz

    Salesforce Buzz | An Infographic

    Infographic in Salesforce Stories

    While Salesforce has been coined as the World's #1 CRM, there has been a constant buzz around the stats and facts of it. Almost 58%…

    Salesforce Cloud Platform, Salesforce Analytics, Salesforce, Salesforce Buzz, CRM
    CEPTES Jan 9, 2018
    3,398  Views
    Salesforce Buzz in numbers

    Salesforce: Giving Buzz In Numbers

    Infographic in Salesforce Stories

    Salesforce has been coined as the world’s top CRM and there is always a constant buzz around it’s latest developments. So let’s check out what…

    Salesforce Apps, Salesforce Integration, Cloud Computing, Salesforce Security, Salesforce Apps for Business
    Algoworks Jan 11, 2018
    3,343  Views

    4 Reasons To Offer An Exceptional Customer Service

    Infographic in Others

    When it comes to customer service, our friends at Salesforce have a few tips and tricks up their sleeve. We were thrilled to help them…

    Salesforce, CRM, Salesforce Tips, Salesforce Infographics, Customer Experience
    lavish Jul 29, 2019
    3,145  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.