"Spring 24 (SP24) Certification Cycle Start date is 13th April 2024"
join our Telegram Chanel Latest Updates https://t.me/salesforcekeeda

Tuesday, March 26, 2019

Process Builder – Part 4 (Auto update Chatter email settings)

Process Builder – Part 4 (Auto update Chatter email settings), how auto update chatter  email setting in process builder, what is the method of auto  update chatter email in process builder, step by step guide of auto update chatter email settings 

Business Use case

Tamara McCleary is working as a System administrator at Universal Containers (UC). She has received a requirement to auto update new user’s Chatter email settings as mentioned below

  1. Frequency for personal digest: – Weekly
  2. Default frequency for groups I join: Email on each post
Solution for the above business requirement

There are multiple solutions possible for the above business scenario. You can either use Apex trigger, a combination of Flow and Process Builder, and few more. We will use Process Builder to solve the above business requirementBefore proceeding you have to understand User objects in Salesforce.
A) DefaultGroupNotificationFrequency: – This field represents the default frequency for sending the user’s Chatter group email notifications when the user joins groups.
B) DigestFrequency: – This field represents the frequency at which the system sends the user’s Chatterpersonal email digest.

Possible options for Notification Frequency are
–> Daily Digests
–> Weekly Digests
–> Email On each post
–> Never
Follow the below instructions to create a Process for the above business requirement
Process Builder – Part 4 (Auto update Chatter email settings) 
1.  Click on Name | Setup | App Setup | Create | Workflows & Approvals | Process Builder2. To create a new process from scratch, click on the New Button available on Process Management page, A popup will open where you have to enter Name (Enter Update Chatter Email Notification as name), API Name and Description as shown in the below screenshot
Define Process Properties

3. Once you click on the Save button, it will redirect you to Process canvas. Click on Object node to add object, select User object, in this case, and set the evaluation criteria, Please refer to the following screenshot for more details

Evaluation Criteria

4. The next step is to define Process criteria. For this click on Add Criteria node, Enter Criteria NameSet filter conditions (Similar to Rule Criteria in WFR), as shown in the following screenshot

Process Criteria

5. Now we have to add an Immediate action into the Process to update the user record. For this use Update Records action, Use Field Picker to select the field Description and Text Entry field to enter a comment or sentence. Click on the User object as shown in the following screenshot to select the object

Select Object

Then select the fields Default Notification Frequency when Joining Groups and Chatter Email Highlights Frequency fields, Choose the frequency as shown in the following screenshot

Add action - Update Records


6. Finally, the Process will look like the following screenshot, clicking on the Activate button.

Auto update Chatter email settings

It’s time to test this Process

Now onwards if the system administrator creates a new user, Process builder will automatically update their Chatter email notification frequency, as shown in the following screenshot
New Users Chatter email settings
original source https://automationchampion.com

You may also read :-