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

    3 Winning Tactics to Use Social Media for Lead Generation

    3 Winning Tactics to Use Social Media for Lead Generation

    Blog in Others

    The success of an organization largely depends on its ability to generate quality leads that have a profound impact on customer acquisition, which in turn…

    Conversion Rate, Customer Relationship Management, Lead generation, Lead generation using Social Media, Marketing Cloud Social Media Management
    DemandBlue Sep 13, 2018
    5,186  Views
    Dreamforce 2023 Key Highlights

    Dreamforce 2023 Key Highlights | The Ultimate Guide

    Blog in Others

    On September 12, 2023, the realms of technology and business once again united for the year’s highly anticipated event – Dreamforce 2023. Over 40,000 individuals…

    Calculated Insight Object, Conversational AI Assistant, Customer-Centric Businesses, Data Cloud, Data Cloud Everywhere
    Kizzy Consulting Dec 13, 2023
    1,167  Views

    How To Be A Salesforce Developer?

    Blog in Salesforce

    From 2014, unarguably the best way to start learning Salesforce is through Trailhead. Think of it as the best university to enroll yourself in for…

    Aura Components, Back-end Development, Back-end Programming, Code Redundant, Continuous Learning
    Apphienz Mar 18, 2021
    2,418  Views

    Popular Salesforce Videos

    Introduction to Lightning Web Components: A Practical Example

    Introduction to Lightning Web Components: A Practical Example

    Video in Lightning, Salesforce Training

    In this session, Alba Rivas will show how to build a page step-by-step in Lightning Web Components. You will learn some of the basics of…

    Salesforce Training, Salesforce Tutorial, Salesforce Developers, Lightning Web Components, Framework
    Jogender Nov 30, 2020
    1,813  Views
    Opportunity Manager for Salesforce

    Opportunity Manager for Salesforce

    Video in Others

    Opportunity Manager for Salesforce - The first opportunity manager app that has taken the initiative of converting information and data in the form of user-friendly…

    Salesforce Case Management, salesforce services, Salesforce Apps, Salesforce Data Management, Salesforce Service Cloud Case Management
    lavish Jun 11, 2019
    2,080  Views
    Getting Information from your Salesforce Account for a Salesforce Connection

    Getting Information from your Salesforce Account for a Salesforce Connection

    Video in Salesforce Stories

    Watch this video to learn how to get information from your Salesforce Account for a Salesforce Connection. Do let us know in the comment section…

    Salesforce Training, Salesforce Tutorial, salesforce, Salesforce Video, Salesforce Account
    Pooja Jun 17, 2022
    1,281  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,681  Views
    Salesforce Customer

    What is Salesforce Customer 360?

    Infographic in Salesforce Products

    According to our State of the Connected Customer report, 76% of customers expect consistent interactions across departments. However, 54% say it often feels like sales, service,…

    Marketing, Salesforce Infographic, Infographic, Customer 360, CRM Platform
    Jogender Dec 14, 2021
    2,682  Views

    Timing is Everything : Understanding B2B Buyer Behavior

    Infographic in Marketing

    B2B buyer activity and research peaks at different times of the year, week, and day. Software Advice conducted a study gathering data from six million…

    Salesforce Marketing Cloud, Salesforce Tools, Customer Relationship Management, Customer Success, Marketing Automation
    Shiv Kumar Sharma Jan 18, 2018
    2,975  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.