-
How can I test Messaging.MassEmailMessage with checking targetobjectids in Salesforce?
We have some User with UserRole. I need to verify that the email has been sent to the user with the role 'TestRole'. How can I do that?
I try:List<Messaging.MassEmailMessage.targetobjectids> emails = [SELECT Id FROM User
WHERE Id =: createUser('TestRole').Id];
Log In to reply.
Popular Salesforce Blogs
Boost Your Sales with Effective Email Pitch Strategies in Salesforce
Clear communication with prospects is the key to building relationships and increasing sales, especially for B2B businesses. As B2B sales involve higher transaction value and…
Understand Separation of Concerns Unit | Salesforce Developer Guide
Presentation Programming, similar to hairdos, is regularly alluded to as something living that changes and advances over the long run. From the single-celled one-celled critter…
Wrapper Class in Apex Salesforce | The Developer Guide
Wrapper Class in Apex Salesforce Wrapper Class in Apex Salesforce: A wrapper or compartment radiance is a class, a realities shape, or a unique data…
Popular Salesforce Videos
Introduction to Salesforce Apex for Developers
Have you ever wanted to write a Trigger in Salesforce? This workshop is designed for people who would like to begin learning the basics of…
Salesforce Lightning Development Tutorial - Hello World!
Salesforce Lightning Custom Component Development Tutorial for Beginners - Let us implement our first custom lightning component - Hello World! Video Resource: Lightning Evangelist
Salesforce Document Automation
Salesforce recently announced the release of an Intelligent Document Automation tool aimed at allowing healthcare and life sciences companies to digitize document-management processes. The tool,…