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 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 7 years, 2 months 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

    application solution

    Popular Salesforce Blogs

    Turning Vision into Reality: A Smarter Way to Deploy CRM

    Blog in Salesforce

    Customer experience is key in today's digitally-driven world. Businesses no longer compete on price or product -- they now compete on how well they can…

    Salesforce Implementation Consultant, Salesforce Implementation Services
    saasverse Aug 1, 2025
    148  Views

    Why Should I Move My Business to Salesforce

    Blog in Salesforce Consultant

    If you are exploring the realm of the CRM business, you will run into plenty of CRMs, with a considerable lot of them offering the…

    Cloud Based CRM, Features of Salesforce, Programming Model, Salesforce Businesses, Salesforce Consultant
    William Apr 26, 2019
    3,579  Views

    Integrate Salesforce with MuleSoft

    Blog in Others

    In this blog we are focusing on Salesforce integration with MuleSoft. Firstly, we will need a Salesforce developer account by clicking on the following link:…

    Salesforce Applications, Salesforce Developer, Salesforce Navigation, SFDC
    Emily Jul 15, 2019
    8,410  Views

    Popular Salesforce Videos

    What is Audit Trail in Salesforce?

    What is Audit Trail in Salesforce?

    Video in Salesforce Admin

    Audit Trails helps to track the recent setup changes that you and other administrators have made to your organization. Watch this video to learn about…

    Salesforce Training, Salesforce Tutorial, Salesforce Online Training, salesforce, Salesforce Video
    CRS Mar 24, 2022
    1,607  Views
    DreamTX Welcome Day 3: Customer Success | Dreamforce 2020 | Salesforce

    DreamTX Welcome Day 3: Customer Success | Dreamforce 2020 | Salesforce

    Video in Salesforce Stories, Events

    If you missed DreamTX DAY 2, then live this amazing experience here, we have covered it all for you. Digital transformation requires more than just…

    dreamforce, salesforce, Salesforce Event, Customer Success, Salesforce Video
    Pooja Dec 17, 2020
    2,234  Views
    Salesforce Checkout: Manage Your Subscription & Buy Licenses

    Salesforce Checkout: Manage Your Subscription & Buy Licenses

    Video in Salesforce Training

    Watch this video to understand how to manage your Salesforce subscription and buy licenses on your own. This makes an easy process even easier, this…

    Salesforce Video, Salesforce Essentials, Salesforce Learning, Salesforce Checkout, Small Businesses
    Neha Yadav Sep 23, 2020
    2,080  Views

    Popular Salesforce Infographics

    Demystifying Salesforce Blockchain

    Infographic in Others

    Salesforce Blockchain is currently available to select design partners and will be generally available in 2020. This Informative Infographic will help readers to decide to…

    Salesforce Products, Salesforce Infographics, Salesforce Features, Artificial intelligence in Salesforce, Blockchain Platform
    DemandBlue Jul 2, 2019
    3,668  Views
    How to deliver a great presentation

    How to Deliver a Great Presentation at Dreamforce? [Infographic]

    Infographic in Events, Dreamforce

    First of all, remember that attendees have paid good money to see you — so it's up to you to make sure they get what…

    Salesforce Events in 2018, Dreamforce, Salesforce Events, How to Deliver a Great Presentation?, Presentation Tips
    Jogender May 24, 2018
    3,578  Views

    Boost Sales and Marketing with Salesforce Einstein 1

    Infographic in Salesforce Apex, Salesforce Products

    Salesforce Einstein 1 is a suite of artificial intelligence (AI) tools designed to enhance business efficiency and decision-making. Around 80% of customers expect companies to…

    AI and Einstein, Salesforce, Einstein
    Fexle Services Jul 10, 2024
    957  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.