Posted at 8:59 PM by Rakesh Gupta, on December 2, 2020
Big Idea or Enduring Question:
How do you create an automation that sends an email to users with a link to join Chatter Group?
Chatter is a powerful Collaboration tool for your organization, for both internal users and partners. In the past, I have written a few articles which show how you can add a user to the Chatter group(s). There are a few situations when you want to send an email that contains a link, as soon ad user clicks on the link they will auto-join Chatter Group. This is the key technique one can use to promote collaboration in the organization.
In this article, I will discuss how you can provide a link tojoin Chatter Group in an email to your users, so they canjoinChatter Groupas per their interest.
Objectives:
After reading this blog post, the reader will be able to:
Use a Screen a flow to add users to a chatter group
Understand how to embed a flow into Visualforce Page
Create an email template and add a quick link to join a Chatter group
Use Schedule-Triggered Flow to automatically send email users to join Chatter Group
Business Use Case
Brenda David is working as a System administrator at Universal Containers (UC). She has received a requirement from the management to send one time email on 22nd December 2020 at 09:00 PM to their users with a link to join the newly created chatter group UC Internal Announcements, so they will auto-join the group as soon as they click on the link provided in the email.
Automation Champion Approach (I-do):
While this can be solved using various automation tools like Apex or Flow, we will use Screen Flow and Schedule-Triggered Flow.
Before proceeding, ahead, understanding CollaborationGroupMember objects in Salesforce. It represents a member of a Chatter group.
Field Name
Details
CollaborationGroupId
Represent Id of the Chatter Group
MemberId
Represent Id of the User (Group member)
Before discussing the solution, let me show you a diagram of a Process Flow at a high level. Please spend a few minutes to go through the following Flow diagram and understand it.
Let’s begin building this automation process.
Guided Practice (We-do):
There are 8 steps to solve Brenda’s business requirement using Salesforce Flow. We must: Read the rest of this entry!
Posted at 8:42 PM by Rakesh Gupta, on May 10, 2014
In Salesforce Chatter group represent group of users. It’s a great way to boost collaboration in your organization. We can add any number of users in Chatter group. Chatter can email you every time someone follows you, posts to your profile or groups etc. You can also receive daily or weekly Chatter group email digests for the group you are member of. To receive Chatter email notification and digests first of all administrator have to enable email notifications for your organization.
Enable Chatter notification for your organization
Once you enable Chatter for your org, next task is enable email notification for your organization. if you create new Salesforce org this feature is by default enabled. To enable Chatter email notification for your organization follow the below instructions
1) Click on Name | Setup | App Setup | Customize | Chatter | Email Settings
2) Select Allow Emails check box to enable email notification. This option allows user to configure the type and frequency of email notifications they want to receive.
3) If you want to allow users to reply to email notification about messages and comments via email instead of navigating to the comment or message in Chatter then select Allow Emails Replies .
4) If you want to allow users to post to groups using email then select Allow Posts via Email
Chatter Email Settings
5) Click on Save
Note:- To stop email notification for Chatter, deselect Allow Emails check box.
In this article I will discuss various ways to manage Chatter group email notification.
Business Use case 1:-User Rakesh Gupta from Universal Container doesn’t want to receive email notification for the Chatter Group Help Desk.
Solution of above business requirement
To fulfill above requirement follow the below instructions.
1) Click on Name | Setup | Personal Information | My Chatter Settings | Chatter Email Settings
2) Navigate to Group Section, It will show all groups that you are member of, you can select email notification frequency as per your choice, as shown in the below screenshot
Chatter Group Email Notification Settings – Method 1
3) Click on Save.
–>Another way is, You can directly navigate to the Chatter group for which you want to change email notification frequency and from the Chatter group page you can do these settings, as shown in the following Screenshot
Chatter Group Email Notification Settings – Method 2
Business Use case 2:-Higher management in Universal Container wants to daily digest all group members for Chatter Group Help Deskbecause this is a very critical group where they are sharing all important information’s.
Solution of above business requirement
In above example you have to set email notification frequency for all group members for Chatter groupHelp Desk. As a system administrator the best way to do this is Data Loader. Before proceeding you have to understand CollaborationGroup and CollaborationGroupMember objects in Salesforce.
2. CollaborationGroupMember :- This object represent a member of a Chatter group. CollaborationGroupIdrepresent Id of Chatter Group, MemberIdrepresent ID of the user(group member) and NotificationFrequency represent frequency at which Salesforce sends Chatter group email digests to this members. Possible options for NotificationFrequency are
D—Daily
W—Weekly
N—Never
P—On each post
Follow the below instruction to set email frequency for all users from data loader
1) Open Data Loader, click on export and login
2) Select Show all Salesforce objects check box, select Group Member, choose a target for extraction and click on Next as shown in the below screenshot
Export Group Member
3) Select Id, NotificationFrequency and add condition where CollaborationGroupId equals to Chatter Group Help Desk ID, as shown in the below screenshot and click on Finish
Filter Records based on Chatter Group
4) Now open your .Csv file and edit column as NotificationFrequency set it to D (D—Daily) for all users , as shown in the following screenshot
Modify Notification Frequency on .Csv File
5) Now we will perform Upsert operation using Data Loader with the object Group Member and click on Next as shown in the following screenshot
Select Object and Choose File For Upsert
5) Map the fields and click on Next, as shown in the below screenshot
Map the Fields
6) On the last Screen select location for Success and Error and click on Finish.
Few points to remember
1) Daily digests include the 50 latest posts from the previous day while weekly digests include the 50 latest posts from the week. Both include the three latest comments on each post.
2) The Email on Each Post option is disabled once a group exceeds 10,000 members. All members who had this option selected are automatically switched to Daily Digests.
3) Chatter sends daily digests at approximately 12:00 a.m. every day and weekly digests at approximately 12:00 a.m. on Sunday. For user digests the time is mentioned in user’s record.
4)Whenever you join or are added to a group, you don’t receive email notifications initially because they’re turned off by default. You can use Set default frequency for groups I join: to choose how often you want to receive emails when joining new groups. Changing the default frequency doesn’t affect the groups you already belong to.
5) When you like some post on Chatter then you will start receiving email notification for new comments on that post. To stop email notification unlike the post.