Automation Champion

Automating Salesforce One Click at a Time
Automation Champion
  • Home
  • About Me
    • Testimonials
    • Resources
  • Process Builder
  • Salesforce Flow
  • Pardot
  • Apex
  • Training Details
    • Salesforce Administrator
    • Salesforce Advanced Administrator
    • Platform App Builder
    • Lightning Flow
    • Pardot
    • Sales Cloud
    • Service Cloud
    • Community Cloud
    • Hands-on Excercises
  • My Books
  • Contact Me
  • Tag: MemberId

    • Getting Started with Salesforce Flow – Part 45 (Click and Join a Chatter Group)

      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 to join Chatter Group in an email to your users, so they can join Chatter Group as 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 in Chatter, Salesforce Flow, Schedule-Triggered Flow | 2 Comments | Tagged Add Member into Chatter group, Add Member into Chatter group Salesforce1, Add Memeber into chatter Group, adm 201 salesforce, Advance flow, Auto Join Chatter join on clicking link, Automatically Add New User to Chatter Group, Chater Group Join hack, Chatter Group, Chatter group hack, Chatter Group Invitation Email, Chatter group invitation in email, Click and Join Chatter Group, Click and update field, Click and update object data, Click Here to join Chatter Group, Click on email link and join Chatter Group, Click on email link to update field Saleforce, CollaborationGroupId, CollaborationGroupMember, Emai link to Join Chatter Group, flow, flow builder in salesforce, flow builders, Flow examples, Flow exmple, Grant Visaulforce Page, Group Invitation Email, Join Chatter grou various way, Join Chatter group hack, Lightning Flow, Lightning Flow example, lightning flows in salesforce, link to join Chatter Group, link to join Chatter Group in an email, Link to join Chatter group in Email, Link to join Chatter group through Email, MemberId, New Flow, Record Create, Record Lookup, Record lookup in flow, sales force automation software, salesforce automation, salesforce automation tools, salesforce chatter, Salesforce Chatter Group, Salesforce Flow, Salesforce Flow Example, salesforce flows, salesforce lightning flow, salesforce lightning flow examples, Scheduled Flow, Scheduled Flow Exmaple, Screen, Screen Flow, Screen Flow Example, Use Schedule-Triggered Flow, Use Schedule-Triggered Flow Example
    • Manage email notification for Chatter Group

      Posted at 8:42 PM by Rakesh Gupta, on May 10, 2014

      Email Notification

      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

      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

      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 email notification settings

      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 Desk because 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 group Help 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.

      1. CollaborationGroup :- This object represents a Chatter group.

      2. CollaborationGroupMember :- This object represent a member of a Chatter group. CollaborationGroupId represent Id of Chatter Group,  MemberId represent 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 m

      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

      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

      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

      Select Object and Choose File For Upsert

      5) Map the fields and click on Next, as shown in the below screenshot

      Map the Fields

      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.

      Have feedback, suggestions for posts, or need more information about Salesforce online training offered by me? Say hello, and leave a message!

       

      Posted in Chatter | 8 Comments | Tagged ADM 201, adm 201 certification, adm 201 salesforce, admin release exam, Chatter Email Settings, Chatter Group, Chatter Group digest, Chatter Group email Chatter Group digest, Chatter Group email digest limitation, Chatter group email notification, Chatter Group Email Notification Settings, Chatter Groups, CollaborationGroup, CollaborationGroupMember, Con 201, Data Laoder, dev 401, DEV401, developer release exam, Disable chatter Email Settings, Enable chatter Email Settings, Export, Group Member Object, Manage email notification for Chatter Group, MemberId, My Chatter Settings, NotificationFrequency, salesforce, salesforce certified developer exam, Salesforce maintenance exam, Salesforce release exam, Salesforce release exam dates, Salesforce release exams, Upsert
    • Search

    • Upcoming Trainings

      Salesforce Administrator Certification
      Salesforce Advanced Administrator Certification
      Salesforce Platform App Builder Certification
      Lightning Flow & Process Builder
      Pardot Specialist & Consultant Certification
      Sales Cloud Consultant Certification
      Service Cloud Consultant Certification
      Community Cloud Consultant Certification
    • Sponsor #1

    • Sponsor #2

    • Sponsor #3

    • Sponsor #4

    • Order Now!

    • Buy My Book

    • Buy My Book

    • Recent Posts

      • Getting Started with Salesforce Flow – Part 55 (Add or Remove Followers to a Record with the Help of Salesforce Flow)
      • Getting Started with Salesforce Flow – Part 54 (Auto-follow a Chatter Question After Reply)
      • Getting Started with Salesforce Flow – Part 53 (Clone a User with their associated Public Group, Queue Membership and Permission Sets)
      • Getting Started with Pardot – Part 14 (How to Use Pardot Form Handlers)
      • Getting Started with Salesforce Flow – Part 51 (Add a Flow to a Lightning Page)
    • Salesforce ID Converter Build on Lightning Flow

      Converting 15 digit ID to 18 digit Salesforce ID
    • Blog Archives

    • Categories

  • Information

    • About Me
    • Affiliate Disclaimer
    • Contact Me
    • Privacy Policy
  • Top Posts

    • Salesforce Spring’21 Release Quick Summary
    • Learning Flow
    • Getting Started with Salesforce Flow – Part 53 (Clone a User with their associated Public Group, Queue Membership and Permission Sets)
    • Learning Process Builder
    • Getting Started with Salesforce Flow – Part 55 (Add or Remove Followers to a Record with the Help of Salesforce Flow)
    • Getting Started with Process Builder – Part 30 (Auto-generate Renewal Opportunity With Line Items)
    • Getting Started with Salesforce Flow – Part 11 (Count Number of records in a Record Collection Variable)
    • Learning Pardot
    • Getting Started with Salesforce Flow – Part 33 (Prior Value of a Record in Record-Triggered Flows)
    • Lightning Flow
  • Social Media

    • View Automationchampion’s profile on Facebook
    • View Automationchamp’s profile on Twitter
    • View Rakeshistom’s profile on GitHub