1

Im working on a communities implementation for a customer and they are hoping to have a way for users to set their email setting options as part of a custom signup process.

Is it possible to access a users various email settings, including group email notifications in apex for use in a visualforce page?

2 Answers 2

1

If your looking to control group email notifications then it is possible, but you would do this with the GroupMember Object. You can access the groupmember object where the userId matches the userID you are looking for and set the Group attribute of 'Send Group Emails' to true.

http://www.salesforce.com/us/developer/docs/api/Content/sforce_api_objects_groupmember.htm

A snippet from the Object Model

enter image description here

And the link to the documentation

http://www.salesforce.com/us/developer/docs/api/Content/sforce_api_erd_users.htm

3
  • Hmm interesting.... im not seeing the Send Group Emails attribute? is that on GroupMember? I dont see it in workbench either? dropbox.com/s/dq20j9rjap6pakh/… Sep 29, 2013 at 21:33
  • No it is on the Group object, but you can access it from the the GroupMember Object Sep 29, 2013 at 22:15
  • But I'm trying to change the users notification setting, not settings for the whole group? Sep 30, 2013 at 2:30
0

Community email/chatter preferences for a user are on the NetworkMember object.

http://www.salesforce.com/us/developer/docs/api/Content/sforce_api_objects_networkmember.htm

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .