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

    Popular Salesforce Blogs

    User in Salesforce

    Creating And Maintaining the User in Salesforce

    Blog in Salesforce Admin

    Salesforce administrator manages users by creating and editing users’ details, resetting passwords, granting/removing permissions, configuring data access levels, and much more. A user is typically…

    Apex Warning Emails, Configuring Data Access Levels, Creating And Maintaining The User, Developer Edition, Email Address
    Anshu Dec 9, 2021
    4,907  Views
    Data Modeling in Salesforce

    Data Modeling in Salesforce - The Basics

    Blog in Data, Salesforce

    Salesforce Data Model is the method to represent the table in your Salesforce org in order to make the data understandable to the viewers. Data…

    Application, Business, Business Data, Client Application, Complicated Data
    yash Aug 20, 2021
    8,730  Views
    marketing cloud connect

    Key Features of Salesforce Marketing Cloud Connect

    Blog in Salesforce

    Let's explore what we can do with Marketing Cloud Connect via this blog!!! Marketing Cloud Connect Marketing Cloud Connect integrates your Salesforce Marketing Cloud instance…

    Community Cloud, Contact Builder, CRM, CRM Data, Customer Engagement
    Udit Aug 4, 2020
    13,546  Views

    Popular Salesforce Videos

    Object Oriented Programming - Salesforce Developer Tutorial

    Object Oriented Programming - Salesforce Developer Tutorial

    Video in Salesforce Training

    In relation to programming languages, object-oriented means that the code focuses on describing objects. An object can be anything that has unique characteristics, such as…

    Salesforce Training, Salesforce VIdeos, Salesforce Learning, Objects, Salesforce Developer Tutorial
    Abhishek Jan 20, 2022
    1,845  Views
    Salesforce Field Service Scheduling Optimization | AblyPro Webinar

    Salesforce Field Service Scheduling Optimization | AblyPro Webinar

    Video in Salesforce Field Service Platform

    Revolutionize and Level Up Your Game in Services Business With Field Service With Salesforce Field Service on your side, businesses can reduce travel time, improve…

    Salesforce Training, Salesforce Tutorial, Salesforce Webinar, Salesforce Video, Salesforce Field Service
    AblyPro Oct 11, 2023
    1,078  Views
    How to Use Product Rules with Salesforce CPQ

    How to Use Product Rules with Salesforce CPQ

    Video in Salesforce Products

    In this demo video, you'll learn about the three most popular types of product rules for CPQ: validation, alert, and selection. You'll also see how…

    Salesforce CPQ, CPQ, Salesforce VIdeos, Product Rules, validation
    Pooja Mar 20, 2020
    1,935  Views

    Popular Salesforce Infographics

    tech employee

    How IT Leaders Can Build Employee Advocacy | Salesforce Infographic

    Infographic in Others, Salesforce Stories

    We created the APAC Employee Engagement report based on this research, to provide key insights that are critical to IT and people leaders now and…

    Salesforce, Salesforce Infographic, Infographic, Employee Engagement, Businesses
    Rupal Kakkar Jun 12, 2020
    1,999  Views
    Relationships in salesforce

    6 Types of Relationships in Salesforce

    Infographic in Salesforce Admin, Salesforce CRM

    A relationship in Salesforce is a 2-way association between 2 objects. Using relationships we can link objects with each other and we can make connections…

    Salesforce Training, Salesforce, Salesforce Records, Salesforce Ohana, Salesforce Tutorial
    S2 Oct 14, 2022
    3,469  Views

    Salesforce - Key For Your Industry Solutions

    Infographic in Salesforce Stories

    Salesforce endlessly improves the productivity and performance of the company. To enhance the customer experience and generate more revenue many industries will be opting for…

    Salesforce Service Cloud, CRM, Customer Relationship Management, Salesforce Cloud Services, Salesforce Services
    Hazel Feb 20, 2019
    3,405  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.