Getting Started with Process Builder – Part 18 (Auto Creates a Private Chatter Group )

Getting Started with Process Builder – Part 18 (Auto Creates a Private Chatter Group )

Last Updated on November 22, 2020 by Rakesh Gupta

Big Idea or Enduring Question:

How do you auto-create a chatter group using Process Builder?


This blog post will help us to understand the following

  • Understanding Quick actions
  • How to use the quick action in Process Builder

Business Use case

Warren Mason is working as a System administrator at Universal Containers (UC). His organization wants to auto-create a private Chatter group, whenever an active campaign gets created. For Chatter group name they want to use the campaign name.  

Automation Champion Approach (I-do):

Actions allow users to perform certain activities very quickly – such as create records, update records, send an Email, log calls, call a Lightning component, execute Lightning Flow, and call a Visualforce page. With custom actions, users save precious time by getting quick access to important information. It also has the capability to pre-populate the data from the record.  

There are two types of actions available to users: object-specific and global. 

  • Object-Specific Actions:- These actions have automatic relationships to other records. The actions let users quickly create or update records, send an Email, log calls, call Lightning components, execute Lightning Flow, and call a Visualforce page in the context of a particular object.
  • Global Actions – A System Administrator can create global actions in Setup. Then, s/he can put global actions anywhere on an object that supports actions. Using global actions, users can log calls, create records, send an email, call a Visualforce page, execute a Lightning component, and call Custom Canvas, all without leaving the page.

While this can be solved using various automation tools like Apex or Flow, we will use Process Builder. This is not something that can be accomplished with Workflow Rules. The benefits of using Global or Object-specific action with Process Builder over create a record or update records action are the following: 

Before proceeding, ahead, understanding the below-listed salesforce objects: 

Action Create a Record or Update Records
It allows you to set the Record Type without   hard code the ID Currently, you have to hard code the record ID
It allows you to create Chatter Group or Notes Currently, Process Builder doesn’t support Group, Note object

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 4 steps to solve Warren’s business requirement using Process Builder. We must: 

  1. Define process properties
  2. Define evaluation criteria
  3. Define process criteria
  4. Add action – quick actions 

Step 1: Define Process Properties

  1. Click Setup.
  2. In the Quick Find box, type Process Builder.
  3. Select Process Builder, then click New.
  4. Name the Process and click the Tab button. The API Name will populate. 
  5. As a best practice, always input a description
  6. The process starts when A record changes.
  7. Click Save.

Step 2: Define Evaluation Criteria

  1. Click on the Add Object node to begin selecting the evaluation criteria.
  2. Select the Campaign object from the dropdown list.
  3. Start the process when a record is created or edited.
  4. Click Save.

Step 3: Define Process Criteria

  1. Click the Add Criteria node to begin defining the process criteria.
  2. Name the criteria.
  3. The criteria should execute actions when the conditions are met.
  4. Set Conditions
    1. Row 1
      1. Field: Campaign | IsActive
      2. Operator: Equals
      3. Type: Boolean
      4. Value: True
  5. Select All of the conditions are met (AND)
  6. Click Advanced
  7. Select Yes to execute the actions only when specified changes are made to the record.
  8. Click Save.

The reason why we would select the Yes checkbox for the question — Do you want to execute the actions only when specified changes are made to the record? — is to allow the Process Builder to execute the actions only if the record meets the criteria now, but the values that the record had immediately before it was saved didn’t meet criteria. This means that these actions won’t be executed when irrelevant changes are made.

Step 4: Add Action – Quick Actions

  1. Below Immediate Actions, click Add Action.
  2. For Action Type, select Quick Actions
  3. Name the action.
  4. Filter Search By: Global Actions
  5. Type: Create a Record
  6. Action: NewGroup
  7. Set Quick Action Field Values:
    1. Row 1:
      1. Field: Name
      2. Type: Field Reference 
      3. Value: Campaign | Name
    2. Click Add Row
    3. Row 2:
      1. Field: Access Type
      2. Type: Picklist
      3. Value: Private
    4. Click Add Row
    5. Row 3:
      1. Field: Related Record ID
      2. Type: Field Reference 
      3. Value: Campaign | ID
  8. Click Save.

Almost there! Once everything looks good, click the Activate button. 

Note:- Before you activate your process, you will want to make sure that you have assigned data in the correct format because Process Builder obeys validation rules. If some fields are required by using validation rules, then make sure you have added those fields. Conversely, if some fields are required on the page layout, you can ignore those fields. 

Proof of Concept

Now onwards, if a business user creates a campaign and makes it active, then Process Builder will automatically trigger and create a Chatter group.

  1. Now create a new campaign (Demo Campaign 1), as shown in the following screenshot:
  2. Navigate back to the Groups tab and check the newly created chatter group.

Formative Assessment:

I want to hear from you!  

What is one thing you learned from this post? How do you envision applying this new knowledge in the real world? 

Let me know by Tweeting me at @automationchamp, or find me on LinkedIn.

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

12 thoughts on “Getting Started with Process Builder – Part 18 (Auto Creates a Private Chatter Group )

  1. Thank you for the quick response. I believe I am not following. Is NetworkID is Community.ID? Also, I am trying to create a process where if a filed in account is updated to “True”, then it should automatically create a community chatter group and have account owner as the group owner. Is it possible to do? IF yes, the above like can be taken as reference?


          1. Hi Rakesh,
            Thank you for your help yesterday. I would like ask another help. Since you help me auto create Community Chatter group once an account is created, Do you have any documents to auto populate the URL of the community group in a custom filed under Account Object? This will give owner of the account direct access and make them aware of the existence the group related to the accounts they own.

          2. Thank you Rakesh, How do I Reference URLs for every Community Chatter group created by the flow/processbuilder? I would really appreciate if you could direct me to a step by step process. I am new at this 🙂

            1. If I am not wrong you have used to create a Chatter Group. Record Create element allows you to save newly created record ID into a variable that you can refer later.

  2. Hi Rakesh,
    I want to create Community Chatter Group exactly the way you documented for the internal Chatter group. Do you have any document for that?
    Thank you

  3. Hi Rakesh,
    Regarding the above process builder on – auto create a private chatter group. I am trying to do a similar thing by adding a button (Create chatter group) on Opportunity page, which users have the option to push if they want to create a chatter group on that deal with all deal team members. I have two questions related to this requirement:

    1. I would like to create an object specific quick action rather than global action. But if i go with quick action, it just gives me an option between event, task and log a call. I don’t want those.
    2. In the process builder above the type of chatter group didn’t give me an option of “unlisted”. We don’t want users to create private group instead we want them to create “unlisted groups”. Can you explain why.

    Thank you for your help.


Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.