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
leasleas 

Receive Approval Request Emails

Hi,

 

Is it possible to do mass update to field 'Receive Approval Request Emails' in user object? Thanks.

 

 

Lea. 

 

Best Answer chosen by Admin (Salesforce Developers) 
AmitSahuAmitSahu

Are you trying to update all users record to have Receive Approval Request Emails checked ?

 

I think the answer to this is, No.  This is not a field in User object..


All Answers

AmitSahuAmitSahu

Are you trying to update all users record to have Receive Approval Request Emails checked ?

 

I think the answer to this is, No.  This is not a field in User object..


This was selected as the best answer
leasleas

I just curious why it is not a field in user object, hope salesforce.com will enable it in the future, thanks.

Roshan ChavhanRoshan Chavhan
Hi,
Please find below script to change field value to never.

User us =[Select Id,No_Workflow__c From User where id= :UserInfo.getUserId()];
system.debug('===> '+us);
us.UserPreferencesReceiveNoNotificationsAsApprover = true
us.UserPreferencesReceiveNotificationsAsDelegatedApprover = false
update us;