-
How to calculate the sum of the contact records expiring soon on an account object in Salesforce?
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.
Log In to reply.
Popular Salesforce Blogs

Salesforce Marketing Cloud Content Builder Can Help You Succeed
Salesforce Marketing Cloud is a robust marketing automation platform that enables firms to drive their marketing activities and convert leads into sales. The Content Builder,…

Why You Should Integrate ERP Data Into Your CRM | Salesforce Developer Guide
Sales and Finance teams are two sides of the same coin — a profitability coin, that is. Both are critical to a company’s ability to…

How To Create Surveys Using Salesforce Flow
Technically Salesforce Flow is known as a business ‘workflow wizard’ or simply a sequential set of screens that can be used to complete or assist…
Popular Salesforce Videos
Passed Salesforce Certification Exam in First Attempt
Salesforce certifications come in all shapes and sizes, so nearly anyone who works in Salesforce and wants to learn more about the tool can find…
Data Archiving in Salesforce | Backup and Restore
Learn the techniques, patterns and strategies when it comes to handling data archiving, backup and restores. Watch this video and learn all about Data Archiving…
Salesforce Health Cloud
Salesforce Health Cloud is a health IT CRM system that incorporates doctor-patient relationship and record management services. Through Private Communities, patients can view care plans,…
Popular Salesforce Infographics

Top Salesforce Trends For 2023
When it comes to managing customer databases, Salesforce is leading the pack. Companies are increasingly relying on this powerful tool for its unrivalled flexibility and…

5 big takeouts from Salesforce World Tour 2018
The action-packed Salesforce World Tour 2018 rolled into Sydney last week, bringing with it a fun-filled day of innovation, learning, career transformation and giving back.…

Management: Salesforce – 27 Incredible Sales Tips
Get a complete view of your customers, including activity history, key contacts, customer communications, and internal account discussions.. With sales software from Salesforce (Salesforce Sales…