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: headless flow

    • Getting Started with Process Builder – Part 36 (Delete Complete Chatter Conversation)

      Posted at 6:10 PM by Rakesh Gupta, on July 15, 2015

      Big Idea or Enduring Question:

      How can users be allowed to delete Chatter conversation?

      This is a continuation of my previous article Getting Started with Process Builder – Part 35 (Delete Chatter Messages), In that I had discussed a way which allows your users to delete Chatter messages. This article goes a step ahead and explains, how to delete all messages at once, i.e. how to delete a Chatter conversation. Chatter conversation is nothing but messages that members have sent or received. 

      Objectives:

      After reading this article, the reader will be able to:

      • Launch a flow from Process Builder
      • Use automation to increase user permissions
      • Create a custom object to store the Id of a Chatter conversation
      • Use Flow to delete the Chatter Conversation 

      Business Use case

      Rachel Gillett is working as a System administrator at Universal Containers (UC). She has received a requirement from management to allow their Sales reps (License Type: – Salesforce Platform) to delete Chatter conversation from Salesforce UI.

      Automation Champion Approach (I-do):

      **Chatter Messages functionality is only available in Classic

      First, it is important to understand Chatter messages and Chatter Conversations in Salesforce. Chatter messages let you have secure private conversations with other Chatter users. Use messages to send your colleague a question privately or to communicate with a few selected people when a discussion isn‘t relevant to everyone you work with. A Chatter conversation consists of messages that conversation members have sent or received.  

      Remember the following points for using Chatter messages

      1. A private message can include up to 9 members, including yourself.
      2. Messages sent will not be viewable through Chatter feed, Chatter Profile, or Global Search results.
      3. You can’t delete messages or conversations.
      4. An administrator with the Manage Chatter Messages permission can view and delete all users‘ messages in Chatter.  This may be necessary for compliance purposes
        1. Messages are hard deleted. They aren’t sent to the Recycle Bin.
        2. Deleted messages aren’t included in message search results.
        3. If all messages in a conversation are deleted, the conversation doesn‘t show in My Messages and can’t be retrieved via the Chatter REST API.
      5. If after reading the messages in a conversation you want to mark the conversation unread, you can do so only via the Chatter REST API, not via the user interface.

      There are a few possible solutions for the above business scenario, but I’ll use Process Builder and Flow to solve the business requirement. As discussed earlier, a System Administrator with the Manage Chatter Messages permission can view and delete all users’ messages in Chatter. Business users are not allowed to delete messages or conversations.

      In Salesforce the ChatterMessage object represents a message sent as part of a private conversation in Chatter. There are some relevant fields to identify:

      Field Name Details
      Id Chatter Message Id
      ConversationId The ID of the conversation that the ChatterMessage is associated with.

      Before discussing it, 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 Rachel’s business requirement using Flow and Process Builder. We must: Read the rest of this entry!

      Posted in Chatter, Process Builder, Salesforce Flow | 0 Comments | Tagged ADM 201, adm 201 certification, adm 201 salesforce, admin release exam, Advance flow, Chatter, Chatter Conversation Id, ChatterMessage, Cloud Flow Designer Workbook, Con 201, ConversationId, Delete Chatter Conversation, Delete Chatter Conversations, Delete Chatter Conversations Apex, Delete Chatter Conversations Apex Trigger, Delete Chatter Conversations Flow, Delete Chatter Conversations Process Builder, Delete Chatter Conversations Visual Workflow, dev 401, DEV401, developer release exam, Enable Process Builder, flow, Flow exmple, Flow Runs in System mode, Getting started with Process Builder, headless flow, How to activate Process builder, how to use Process builder, Lightning Process builder, Process Builder, Process Builder example, Process Builder Salesforce, salesforce, salesforce certified developer exam, Salesforce maintenance exam, Visual workflow, Visual workFlow examples, Visual Workflow Implementation Guide
    • Getting Started with Process Builder – Part 35 (Delete Chatter Messages)

      Posted at 8:00 PM by Rakesh Gupta, on July 13, 2015

      Big Idea or Enduring Question:

      How can users be allowed to delete individual Chatter messages?

      Objectives:

      After reading this article, the reader will be able to:

      • Launch a flow from Process Builder
      • Use automation to increase user permissions
      • Create a custom object to store the Id of a Chatter message
      • Use Flow to delete the Chatter Message

      Business Use case

      Rachel Gillett is working as a System administrator at Universal Containers (UC). She has received a requirement from management to allow their Sales reps (License Type: – Salesforce Platform) to delete Chatter messages one-by-one from the Salesforce UI.

      Automation Champion Approach (I-do):

      **Chatter Messages functionality is only available in Classic

      First, it is important to understand Chatter messages and Chatter Conversations in Salesforce. Chatter messages let you have secure private conversations with other Chatter users. Use messages to send your colleague a question privately or to communicate with a few selected people when a discussion isn‘t relevant to everyone you work with. A Chatter conversation consists of messages that conversation members have sent or received.  

      Remember the following points for using Chatter messages

      1. A private message can include up to 9 members, including yourself.
      2. Messages sent will not be viewable through Chatter feed, Chatter Profile, or Global Search results.
      3. You can’t delete messages or conversations.
      4. An administrator with the Manage Chatter Messages permission can view and delete all users‘ messages in Chatter.  This may be necessary for compliance purposes
        1. Messages are hard deleted. They aren’t sent to the Recycle Bin.
        2. Deleted messages aren’t included in message search results.
        3. If all messages in a conversation are deleted, the conversation doesn‘t show in My Messages and can’t be retrieved via the Chatter REST API.
      5. If after reading the messages in a conversation you want to mark the conversation unread, you can do so only via the Chatter REST API, not via the user interface.

      There are a few possible solutions for the above business scenario, but I’ll use Process Builder and Flow to solve the business requirement. As discussed earlier, a System Administrator with the Manage Chatter Messages permission can view and delete all users’ messages in Chatter. Business users are not allowed to delete messages or conversations.

      In Salesforce the ChatterMessage object represents a message sent as part of a private conversation in Chatter. There are some relevant fields to identify:

      Field Name Details
      Id Chatter Message Id
      ConversationId The ID of the conversation that the ChatterMessage is associated with.

      Before discussing it, 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 Rachel’s business requirement using Flow and Process Builder. We must: Read the rest of this entry!

      Posted in Chatter, Process Builder, Salesforce Flow | 4 Comments | Tagged Add Criteria Proces builder, ADM 201, adm 201 certification, adm 201 salesforce, admin release exam, Advance flow, Cloud Flow Designer Workbook, Con 201, Delete Chatter Message in Salesforce, delete Chatter messages in Salesforce, dev 401, DEV401, Enable Process Builder, flow, Flow examples, Getting started with Process Builder, headless flow, Lightning Process builder, salesforce, salesforce certified developer exam, Salesforce newsletter, Salesforce Process Builder, Salesforce Spring14 release notes, Visual workflow, Visual Workflow delete chatter messages, Visual Workflow example, Visual workFlow examples, Visual Workflow Implementation Guide, Visual Workflow rakesh
    ← Older posts
    Newer posts →
    • Search

    • Upcoming Trainings

      Salesforce Administrator Certification
      Salesforce Advanced Administrator Certification
      Salesforce Platform App Builder Certification
      Lightning Flow & Process Builder
      Advanced Lightning Flow
      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 58 (Customize Previous, Next, Finish, and Pause Button Label for Screen Flow!)
      • Streamline Data Collection with Salesforce-Connected Forms
      • Getting Started with Salesforce Flow – Part 56 (Merge Chatter Topics with the Help of Salesforce Flow)
      • Getting Started with Salesforce Flow – Part 57 (Adding Validation to Flow Screen Components)
      • Getting Started with Salesforce Flow – Part 55 (Add or Remove Followers to a Record with the Help of Salesforce Flow)
    • 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

    • Learning Flow
    • Learning Process Builder
    • Getting Started with Salesforce Flow – Part 11 (Count Number of records in a Record Collection Variable)
    • Salesforce Spring’21 Release Quick Summary
    • Getting Started with Salesforce Flow – Part 4 (Need to Redirect a User to a New Record?)
    • Getting Started with Salesforce Flow – Part 57 (Adding Validation to Flow Screen Components)
    • Getting Started with Salesforce Flow – Part 1 (Understand, Create & Use Variables in Flow!)
    • Getting Started with Salesforce Flow – Part 31 (Auto Submit Record into Approval Process with Flow)
    • Getting Started with Salesforce Flow – Part 33 (Prior Value of a Record in Record-Triggered Flows)
    • Getting Started with Process Builder - Part 1 (Automatically Create a record)
  • Social Media

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