function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
SAHG-SFDCSAHG-SFDC 

Email notification to partners or the users

I am working on the below requirement where I want to investigate 

1. Can we send a daily summary of leads that got assigned to the partner.
2. Can the partner user Opt-In/Opt-Out of lead notification messages.
3. How to send only one email when leads are uploaded in bulk.
Best Answer chosen by SAHG-SFDC
Uvais KomathUvais Komath
In your workflow you have to add a criteria that the custom setting u created is checked.

So whenever you turn the custom setting off,the workflows wont trigger.
Its easy. we use it all the time for workflows and validation rules

All Answers

Uvais KomathUvais Komath

#1 you can use scheduled apex for this

#2 Create a public force.com site and use this as unsubscribe page. The unsubscribe link can pass some parameters into URL which can be used to identify the lead who clicked unsubscribe.

The controller should update a custom object that stores unsubscribed lead list.

Before mailing you have to check this list

 

#3 Add a csutom setting checkbox. In your logic where emails are scheduled check for the custom setting checkbox value

During bulk uploads turn this checkbox off

SAHG-SFDCSAHG-SFDC
Hi Uvais,

Thanks a lot for replying

I wanted to check where how the custom setting will help in my scenario, We use work flow for sending email, Here can I add custom settings and check if the checkbox is checked?
Uvais KomathUvais Komath
In your workflow you have to add a criteria that the custom setting u created is checked.

So whenever you turn the custom setting off,the workflows wont trigger.
Its easy. we use it all the time for workflows and validation rules
This was selected as the best answer
SAHG-SFDCSAHG-SFDC
Thanks a lot, I guess should work , Will try and update here :)
SAHG-SFDCSAHG-SFDC
HI Uvais,

I have the schedulable apex for this completed and working, however, I am not getting more than 10 emails as governor limits

any suggestions?