Final Up to date on October 18, 2022 by Rakesh Gupta
Huge Thought or Enduring Query:
- use record-triggered circulation to automate widespread chatter group administration works to enhance productiveness?
Goals:
Chatter Group is among the nice methods to spice up collaboration in your group. A Chatter group represents a bunch of customers – one can add limitless members to a Chatter Group, however a consumer can be a part of a most of 100 Teams.
Beneath are just a few duties associated to Chatter group membership that may be automated to boost productiveness.
- Ship e-mail notifications to group house owners or managers when somebody joins a Chatter Group.
- Ship e-mail notifications to group house owners or managers when somebody leaves a Chatter Group.
- Auto-update new member’s e-mail frequency for a Chatter Group.
- Promote a consumer to the Chatter group supervisor in the event that they belong to a particular Position.
It’s potential to handle these duties with the assistance of Move. Allow us to see how one can begin working smarter by tackling a enterprise use case.
Maria Coleman works as a System Administrator at Gurukul on Cloud (GoC). At GoC, they use Chatter extensively to collaborate internally. Maria has acquired three necessities from higher administration:
- When somebody joins the ‘GoC Superior Individuals’ Public Chatter group, set their e-mail frequency to – E-mail on Every Publish.
- Notify the group proprietor when somebody joins the Group.
- When a consumer joins the GoC Superior Individuals Group and belongs to the ’Buyer Help, Worldwide’ function, robotically promote them to the group supervisor.
Automation Champion Strategy (I-do):
There are just a few potential options for the above enterprise state of affairs. We are going to use Document-Triggered Move to resolve the requirement.
Earlier than we proceed additional, allow us to perceive the traits of CollaborationGroupMember – It represents a member of a Chatter group.
Earlier than discussing the answer, let me present you a diagram of a Course of Move at a excessive stage. Please spend a couple of minutes going by the next Move diagram and understanding it.
Let’s start constructing this automation course of.
Guided Apply (We-do):
There are Three steps to resolve Maria’s enterprise requirement utilizing Earlier than-Save and After-Save Document-Triggered Move. We should:
- Create a public group and chatter group
- Salesforce Move Steps:
- Outline Move properties for before-save record-triggered circulation
- Create a method to advertise the member to group supervisor
- Add an Project component to the group member fields
- Salesforce Move Steps:
- Outline Move properties for After-save record-triggered circulation
- Add a Textual content Template to assemble the e-mail physique
- Add a core motion ship e-mail to ship out an e-mail
Step 1: Create a Public Group and a Chatter Group
Step 2.1: Outline Move Properties (Earlier than-Save Move)
- Click on Setup.
- Within the Fast Discover field, sort Flows.
- Choose Flows, then click on on the New Move.
- Choose the Document-Triggered Movechoice, click on on Create and configure the circulation as follows:
- Object: CollaborationGroupMember
- Set off the Move When: A report is created
- Set Entry Standards
- Situation Necessities: None
- Optimize the Move For Quick Subject Updates
- Click on Performed.
Step 2.2: Create a Formulation to Promote the Member to Group Supervisor
- Below Toolbox, choose Supervisor, then click on New Useful resource to find out the member function primarily based on their consumer function.
- Enter the next info:
- Useful resourceKind:Formulation
- API Identify: forT_MemberRole
- Information Kind: Textual content
- Formulation: If( {!$UserRole.DeveloperName}=”CustomerSupportInternational”, “Admin”, “Commonplace”)
- Click on Performed.
Step 2.3. Utilizing Project Ingredient to Replace the Alternative FIeld
The subsequent step is updating the collaborationGroupMember fields with new values. We are going to use the Project component, as we’re utilizing the before-save circulation.
- On Move Designer, click on on the +icon and choose the Project component.
- Enter a reputation within the Label discipline; the API Identify will auto-populate.
- Set Variable Worth
- Row 1:
- Subject: {!$Document.CollaborationRole}
- Operator: Equals
- Worth: {!forT_MemberRole}
- Subject: {!$Document.CollaborationRole}
- Click on Add Project
- Row 2:
- Subject: {!$Document.NotificationFrequency}
- Operator: Equals
- Worth: P
- Subject: {!$Document.NotificationFrequency}
- Row 1:
- Click on Performed.
Ultimately, Maria’s Move will seem like the next screenshot:
As soon as all the things appears to be like good, carry out the steps under:
- Click on Save.
- Enter the Move Label the API Identify will auto-populate.
- Click on Present Superior.
- API Model for Operating the Move: 56
- Interview Label: Group Member – Earlier than Save Move {!$Move.CurrentDateTime}
- Click on Save.
Nearly there! As soon as all the things appears to be like good, click on the Activate button.
Step 3.1: Outline Move Properties (After-Save Move)
- Click on Setup.
- Within the Fast Discover field, sort Flows.
- Choose Flows, then click on on the New Move.
- Choose the Document-Triggered Movechoice, click on on Create and configure the circulation as follows:
- Object: CollaborationGroupMember
- Set off the Move When: A report is created
- Set Entry Standards
- Situation Necessities: None
- Optimize the Move For Motion and Associated Data
- Click on Performed.
Step 3.2: Add a Textual content Template to Assemble the E-mail Physique
Now we’ll create an e-mail template utilizing the Textual content Template. The textual content template lets you specify the multi-line messages. It additionally lets you use HTML code.
- Below Toolbox, choose Supervisor, then click on New Useful resource to create a textual content template.
- Enter the next info:
- Useful resource Kind: Textual content Template
- API Identify: textT_EmailBody
- Choose View as Wealthy Textual content
- Physique
- {!$Consumer.FirstName}& ” ” &{!$Consumer.LastName} joins GoC Superior Individuals Chatter Group.
- Click on Performed.
Step 3.3: Add Ship E-mail Motion to Notify Group Proprietor
Now we are going to use the Ship E-mail static motion to ship an e-mail to the Chatter Group Proprietor.
- On Move Designer, click on on the +icon and choose the Motion component.
- Search and choose Ship E-mail from the dropdown menu
- Label the brand new motion Notify Proprietor.
- Set Enter Values
- Physique: {!textT_EmailBody}
- Topic: Somebody joins a Chatter Group
- E-mail Addresses (comma-separated): {!$Document.CollaborationGroup.Proprietor.E-mail}
- Wealthy-Textual content-Formatted Physique: {!$GlobalConstant.True}
- Click on Performed.
Ultimately, Maria’s Move will seem like the next screenshot:
As soon as all the things appears to be like good, carry out the steps under:
- Click on Save.
- Enter the Move Label the API Identify will auto-populate.
- Click on Present Superior.
- API Model for Operating the Move: 56
- Interview Label: Group Member – After Save Move {!$Move.CurrentDateTime}
- Click on Save.
Nearly there! As soon as all the things appears to be like good, click on the Activate button.
Proof of Idea
The subsequent time a consumer joins a Chatter group, record-triggered flows will hearth and (1) replace e-mail frequency; (2) set off an e-mail notification to the group proprietor; and (3), primarily based on a consumer’s function, it can additionally replace their Chatter group function.
- Login as an lively consumer with the Position – Buyer Help, International.
- Find the GoC Superior Individuals group, and click on Be a part of Group.
- The consumer will now grow to be a Supervisor and obtain e-mail notifications on Each Publish.
- An auto-generated e-mail is distributed.
I hope you loved and located worth on this weblog publish about automating Chatter group membership-related duties. Mastering these abilities will improve your productiveness and propel you to attempt numerous permutations and combos to include automation into your day-to-day processes and procedures.
Formative Evaluation:
I need to hear from you!
What’s one factor you discovered from this publish? How do you envision making use of this new data in the actual world? Be at liberty to share within the feedback under.