function readOnly(count){ }
Don't have an account?
Search for an answer or ask a question of the zone or Customer Support.
You need to sign in to do that
Sign in to start searching questions
Signup for a Developer Edition
Sign in to start a discussion
What kind of email alerts you want to avoid?
You can disable the below at user level.
- Salesforce CRM Content User
- Receive Salesforce CRM Content Email Alerts
- Receive Salesforce CRM Content Alerts as Daily Digest
--Magulan Duraipandian
www.infallibletechie.com
I have tried disabling above checkbox at user level but still user is receiving emails, Could you please help me with alternative solution for it.
Thanks,
Yeah you can disable a user from receving email try using the following code:
NetworkMember mem = [SELECT Id, PreferencesDisableAllFeedsEmail FROM NetworkMember WHERE MemberId = ''.....UserId...'];
mem.PreferencesDisableAllFeedsEmail = true;
update mem;
This should do the job for you.
I hope you find the above solution helpful. If it does, please mark as Best Answer to help others too.
Thanks,
Ajay Dubedi